module

Meridian::CLI

Constants

DEFAULT_ORCHESTRATOR_FACTORY = ->(config : Config::DeployConfig, ssh_executor : SSH::Executor, output : IO) do Deploy::Orchestrator.new(config, ssh_executor: ssh_executor, output: output) end
DEFAULT_PROXY_MANAGER_FACTORY = ->(config : Config::DeployConfig, ssh_executor : SSH::Executor, output : IO) do Proxy::Manager.new(config, ssh_executor: ssh_executor, output: output) end
HELP_FLAGS = ["-h", "--help"]
REGISTRY = Registry.new([Commands::Init, Commands::Deploy, Commands::Setup, Commands::Rollback, Commands::Status, Commands::Check, Commands::Plan, Commands::Logs, Commands::Exec, Commands::Run, Commands::Accessory, Commands::AccessoryStart, Commands::AccessoryStop, Commands::AccessoryLogs, Commands::Secret, Commands::SecretGen, Commands::SecretSet, Commands::SecretRm, Commands::SecretLs, Commands::Quadlet, Commands::Proxy, Commands::ProxyRemove, Commands::Lock, Commands::LockStatus, Commands::LockAcquire, Commands::LockRelease, Commands::Audit, Commands::Server, Commands::ServerBootstrap] of Command.class)

Class methods

run(args : Array(String), *, input : IO = STDIN, output : IO = STDOUT, error : IO = STDERR, ssh_executor : SSH::Executor = SSH::Executor.new, orchestrator_factory : OrchestratorFactory = DEFAULT_ORCHESTRATOR_FACTORY, proxy_manager_factory : ProxyManagerFactory = DEFAULT_PROXY_MANAGER_FACTORY) : Int32
Source

Nested types