5.1. fox CLI Implementation
The fox CLI is implemented in a two staged wrapper,
first the
fox.ps1wrapper for PowerShell andfox.shwrapper for bash andsecondly
fox.pyas a generic wrapper to call into the actual CLI whenfox.ps1/fox.shsucceeded.
The fox CLI package provides the fox-cli command to call into the CLI.
5.1.1. fox CLI Wrapper
The workflow of the fox CLI wrapper is shown in
Fig. 5.15.
Fig. 5.15 Block diagram of the fox CLI wrapper
5.1.1.1. fox CLI .ps1 Wrapper
The workflow of the fox CLI .ps1 wrapper is shown in
Fig. 5.16.
Fig. 5.16 Detailed block diagram of the fox CLI .ps1 wrapper
5.1.1.2. fox CLI .sh Wrapper
The workflow of the fox CLI .sh wrapper is shown in
Fig. 5.17.
Fig. 5.17 Detailed block diagram of the fox CLI .sh wrapper
5.1.2. fox.py Wrapper
The purpose of and workflow of the fox.py file is shown in
Fig. 5.18.
Fig. 5.18 Block diagram of the fox.py wrapper
5.1.3. fox CLI package Entry Point
The fox-cli command can only be used if the virtual Python environment
is activated.
Its workflow is shown in Fig. 5.19.
Fig. 5.19 Block diagram of the fox-cli entry point for the fox CLI package