5.1. fox CLI Implementation

The fox CLI is implemented in a two staged wrapper,

  • first the fox.ps1 wrapper for PowerShell and fox.sh wrapper for bash and

  • secondly fox.py as a generic wrapper to call into the actual CLI when fox.ps1/fox.sh succeeded.

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.

Block diagram of the fox CLI wrapper

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.

Detailed block diagram of the ps1 fox CLI wrapper

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.

Detailed block diagram of the sh fox CLI wrapper

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.

Block diagram of the fox.py wrapper

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.

Block diagram of the fox-cli entry point

Fig. 5.19 Block diagram of the fox-cli entry point for the fox CLI package