Class: Ace::Git::Worktree::CLI::Commands::Switch

Inherits:
Support::Cli::Command
  • Object
show all
Includes:
SharedHelpers
Defined in:
lib/ace/git/worktree/cli/commands/switch.rb

Instance Method Summary collapse

Instance Method Details

#call(identifier: nil, **options) ⇒ Object



30
31
32
33
34
35
36
37
38
# File 'lib/ace/git/worktree/cli/commands/switch.rb', line 30

def call(identifier: nil, **options)
  display_config_summary("switch", options)

  # Convert ace-support-cli options to args array format
  args = options_to_args(options)
  args << identifier if identifier

  Ace::Git::Worktree::Commands::SwitchCommand.new.run(args)
end