AutoArchive._ui._cmdline¶
Package defines a Mainf component for a command-line user interface.
Sub-Packages¶
Modules¶
cmdline_commands¶
CmdlineCommands and CmdlineCommandsUtils static classes.
-
class
AutoArchive._ui._cmdline.cmdline_commands.CmdlineCommands[source]¶ Bases:
objectConstants for command-line command names.
Command-line commands are used to invoke program operations via a command-line argument. For example:
--createwill invoke a backup creation.Note
It is not allowed to change values of these constants.
-
CREATE= 'create'¶ Create backup for a given archive specification file.
-
LIST= 'list'¶ List all archive specification files.
-
PURGE= 'purge'¶ Purge orphaned archive data.
-
-
class
AutoArchive._ui._cmdline.cmdline_commands.CmdlineCommandsUtils[source]¶ Bases:
objectVarious utility methods working with
CmdlineCommands.-
static
getAllCommands()[source]¶ Iterator over all known commands.
Returns: All options defined in CmdlineCommands.Return type: Iterable<str>
-
classmethod
isExistingCommand(commandName)[source]¶ Check whether a command with name
commandNamedoes exists inCmdlineCommandsUtils.Parameters: commandName ( str) – Name of the command which existence shall be checked.Returns: Trueif option with namecommandNameexists;Falseotherwise.Return type: bool
-
static