class DocMachine::Container::Cli

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.cr

Class Method Summary

Instance Method Summary

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

def self.container_usage_text(program_name = PROGRAM_NAME) : String #

Returns the canonical multi-line usage instructions for the container subcommand, exposing available actions and their supporting options.


Instance Method Detail

def add_options(opts, args, parent_config, commands) #

Registers the container command, exposing knobs for runtime selection and image metadata while queueing the deferred command execution for the main CLI dispatcher.


def 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.