pynenc.cli.main_cli

Module Contents

Functions

main

Execute the Pynenc Command Line Interface.

API

pynenc.cli.main_cli.main() None[source]

Execute the Pynenc Command Line Interface.

This function initializes and processes the command line arguments for the Pynenc application, sets up logging, and executes the appropriate subcommand function based on the user input.

The CLI supports various subcommands for different functionalities, such as running tasks and configuring the application. The --app parameter is required for most commands, but optional for monitoring which can auto-discover apps.

The main steps include:

  • Parsing command line arguments with argparse.

  • Setting up logging based on verbosity.

  • Importing the application instance.

  • Executing the function associated with the chosen subcommand.

Exceptions:

  • Various exceptions can be raised depending on the subcommands executed and the application’s behavior.