43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/ace/git/worktree/cli/commands/config.rb', line 43
def call(subcommand: nil, **options)
display_config_summary("config", options)
args = []
args << subcommand if subcommand
args << "init" if options[:init]
args << "set-bootstrap" if options[:set_bootstrap]
args << "--show" if options[:show]
args << "--validate" if options[:validate]
args << "--files" if options[:files]
args << "--json" if options[:json]
args << "--bootstrap" if options[:bootstrap]
args << "--command" << options[:command] if options[:command]
args << "--working-dir" << options[:working_dir] if options[:working_dir]
args << "--timeout" << options[:timeout].to_s if options[:timeout]
args << "--required" if options[:required]
args << "--advisory" if options[:advisory]
if options[:env]
Array(options[:env]).each do |e|
args << "--env" << e
end
end
Ace::Git::Worktree::Commands::ConfigCommand.new.run(args)
end
|