Class: Ace::Git::Worktree::CLI::Commands::Create
- Inherits:
-
Support::Cli::Command
- Object
- Support::Cli::Command
- Ace::Git::Worktree::CLI::Commands::Create
- Includes:
- SharedHelpers
- Defined in:
- lib/ace/git/worktree/cli/commands/create.rb
Instance Method Summary collapse
Instance Method Details
#call(branch: nil, **options) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/ace/git/worktree/cli/commands/create.rb', line 61 def call(branch: nil, **) display_config_summary("create", ) # Convert --from to --source for the underlying command if [:from] [:source] = .delete(:from) end # Convert ace-support-cli options hash to args array format args = () args << branch if branch Ace::Git::Worktree::Commands::CreateCommand.new.run(args) end |