abstract class Aero::Commands::BaseCommand
- Aero::Commands::BaseCommand
- Cling::Command
- Reference
- Object
Direct Known Subclasses
- Aero::CLI
- Aero::Commands::ConfigCommand
- Aero::Commands::ExecCommand
- Aero::Commands::SetKeyCommand
- Aero::Commands::SetURLCommand
- Aero::Commands::TestCommand
Defined in:
commands/base.crConstructors
Instance Method Summary
-
#pre_run(arguments : Cling::Arguments, options : Cling::Options) : Bool
A hook method to run once the command/subcommands, arguments and options have been parsed.
Constructor Detail
Instance Method Detail
def pre_run(arguments : Cling::Arguments, options : Cling::Options) : Bool
#
Description copied from class Cling::Command
A hook method to run once the command/subcommands, arguments and options have been parsed.
This has access to the parsed arguments and options from the command line. This is useful if
you want to implement checks for specific flags outside of the main run
method, such as
-v
/--version
flags or -h
/--help
flags.
Accepts a Bool
or nil
argument as a return to specify whether the command should continue
to run once finished (true
or nil
to continue, false
to stop).