Class: SnippetCli::Commands::New
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- SnippetCli::Commands::New
- Defined in:
- lib/snippet_cli/commands/new.rb
Instance Method Summary collapse
Instance Method Details
#call(**opts) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/snippet_cli/commands/new.rb', line 18 def call(**opts) if opts[:bare] && opts[:no_vars] warn '--bare and --no-vars are mutually exclusive. Provide only one.' exit 1 end NewWorkflow.new.run(opts) end |