Module: Ace::Tmux::CLI

Extended by:
Support::Cli::RegistryDsl
Defined in:
lib/ace/tmux/cli.rb,
lib/ace/tmux/cli/commands/list.rb,
lib/ace/tmux/cli/commands/start.rb,
lib/ace/tmux/cli/commands/window.rb

Overview

ace-support-cli based CLI registry for ace-tmux

Defined Under Namespace

Modules: Commands

Constant Summary collapse

PROGRAM_NAME =
"ace-tmux"
REGISTERED_COMMANDS =

Application commands with descriptions (for help output)

[
  ["start", "Start tmux session from preset"],
  ["window", "Add window to existing session"],
  ["list", "List available presets"]
].freeze
HELP_EXAMPLES =
[
  "ace-tmux start dev                    # Launch dev session preset",
  "ace-tmux window cc --root ~/project   # Add window to session",
  "ace-tmux list                         # Available presets"
].freeze

Class Method Summary collapse

Class Method Details

.start(args) ⇒ Integer

Start the CLI

Parameters:

  • args (Array<String>)

    Command-line arguments

Returns:

  • (Integer)

    Exit code (0 for success, non-zero for failure)



35
36
37
# File 'lib/ace/tmux/cli.rb', line 35

def self.start(args)
  Ace::Support::Cli::Runner.new(self).call(args: args)
end