radloggerpy.cli.radlogger_shell module

class radloggerpy.cli.radlogger_shell.RadLoggerShell(**kwargs)[source]

Bases: App

RadLoggerPy interactive command line interface

clean_up(cmd, result, err)[source]

Hook run after a command is done to shutdown the app.

Parameters:
  • cmd (cliff.command.Command) – command processor being invoked

  • result (int) – return value of cmd

  • err (Exception) – exception or None

initialize_app(argv)[source]

Hook for subclasses to take global initialization action after the arguments are parsed but before a command is run. Invoked only once, even in interactive mode.

Parameters:

argv – List of arguments, including the subcommand to run. Empty for interactive mode.

prepare_to_run_command(cmd)[source]

Perform any preliminary work needed to run a command.

Parameters:

cmd (cliff.command.Command) – command processor being invoked

run(argv)[source]

Equivalent to the main program for the application.

Parameters:

argv (list of str) – input arguments and options