class Clear::CLI::Generator
- Clear::CLI::Generator
- Admiral::Command
- Reference
- Object
Included Modules
- Admiral::Command::Run
- Clear::CLI::Command
Defined in:
clear/cli/generator.crclear/cli/generators/migration.cr
clear/cli/generators/model.cr
clear/cli/generators/new/kemal.cr
Constant Summary
-
HELP =
{"description" => ""}
Class Method Summary
- .[](name)
- .[]?(name)
- .add(name, desc, &block : Array(String) -> Nil)
- .description
- .generators
- .run(*args, **params)
Macro Summary
Instance Method Summary
- #__rescue_from___Admiral__Error(e)
-
#arguments
Returns the commands
Arguments
object. -
#flags
Returns the commands
Flags
object. - #help
-
#run
The run command.
- #run_impl
-
#sub(command, *args, **params)
Invokes a sub command by name, passing
self
as the parent.
Class Method Detail
Macro Detail
Instance Method Detail
def arguments
#
Description copied from class Admiral::Command
Returns the commands Arguments
object.
You can access names arguments by name.
You can also access the remaning arguments using .arguments[index]
.
def flags
#
Description copied from class Admiral::Command
Returns the commands Flags
object.
You can access names flags by name.
def sub(command, *args, **params)
#
Description copied from class Admiral::Command
Invokes a sub command by name, passing self
as the parent.