class
DocMachine::Container::Cli
- DocMachine::Container::Cli
- DocMachine::BaseCliCommand
- Reference
- Object
Overview
Implements docmachine's container subcommand by wiring option parsing into the global CLI
registry and dispatching validated arguments to the runtime orchestrator.
Defined in:
container/cli.crClass Method Summary
-
.container_usage_text(program_name = PROGRAM_NAME) : String
Returns the canonical multi-line usage instructions for the
containersubcommand, exposing available actions and their supporting options.
Instance Method Summary
-
#add_options(opts, args, parent_config, commands)
Registers the
containercommand, exposing knobs for runtime selection and image metadata while queueing the deferred command execution for the main CLI dispatcher. -
#process_container_command(args : Array(String), config : DocMachine::Container::Config, usage_io : IO = STDOUT) : Nil
Dispatches validated container subcommands and surfaces actionable usage help whenever required arguments are missing before invoking potentially destructive operations.
Instance methods inherited from class DocMachine::BaseCliCommand
add_options(opts : OptionParser, args : Array(String), parent_config : DocMachine::Config, commands : Array(Proc(Nil))) : Nil
add_options
Class methods inherited from class DocMachine::BaseCliCommand
add_options(opts : OptionParser, args : Array(String), parent_config : DocMachine::Config, commands : Array(Proc(Nil))) : Nil
add_options
Class Method Detail
Returns the canonical multi-line usage instructions for the container subcommand, exposing
available actions and their supporting options.
Instance Method Detail
Registers the container command, exposing knobs for runtime selection and image metadata
while queueing the deferred command execution for the main CLI dispatcher.
Dispatches validated container subcommands and surfaces actionable usage help whenever required arguments are missing before invoking potentially destructive operations.