71 void onRun()
override;
Enum exceptionToExitCode(Exception &exception) override
void onRunStart() override
bool cliStop
Flag to stop the CLI processing loop.
virtual bool cliProcessCmd(cli::Command *cmd)
virtual void getConfigFilePathsFromCLIParam(StdVectorMA< ConfigFileDescriptor > &files)
virtual void bsReadDryRunOption()
Implements #"States::ReadDryRunOption": evaluate early flags (e.g., –dry-run).
virtual void bsCLIReadOptions()
cli::CommandLine cli
The command-line parser provided by module ALib CLI.
void getConfigFilePaths(StdVectorMA< ConfigFileDescriptor > &files) override
AppCli()
Constructs an instance and registers additional bootstrap states.
void onBsPreloadVariables() override
virtual void exitWithHelpOutput(Enum exitCode, const String &helpTopic=NULL_STRING, Box formatParam1=EMPTY_STRING, Box formatParam2=EMPTY_STRING)
virtual void bsCLIDefine()
Implements #"States::CLIDefine": define CLI options, flags and commands.
virtual void bsConfigureCLI()
Implements #"States::ConfigureCLI": finalize CLI after configuration import.
@ CLIReadOptions
Inserted behind #"CLIDefine".
@ ConfigureCLI
Inserted after #"States::ImportConfig": finalize CLI setup based on config.
@ CLIDefine
Inserted before #"States::ImportConfig": define CLI options and commands.
@ ReadDryRunOption
Inserted before #"States::SetupALox": evaluate early flags (e.g., dry-run).
void onBsSetNameVersionAndInfo() override
constexpr String NULL_STRING
A nulled string of the default character type.
constexpr const String EMPTY_STRING
An empty string of the default character type.
boxing::Box Box
Type alias in namespace alib.
strings::TString< character > String
Type alias in namespace alib.
exceptions::Exception Exception
Type alias in namespace alib.
std::vector< T, StdMA< T > > StdVectorMA
Type alias in namespace alib.
boxing::Enum Enum
Type alias in namespace alib.
A command of a ALib CLI command-line.