Class: Herve::CLI::ShellCommands::Init
- Inherits:
-
BaseCommand
- Object
- Dry::CLI::Command
- BaseCommand
- Herve::CLI::ShellCommands::Init
- Defined in:
- lib/herve/cli/shell_commands/init.rb
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
Methods inherited from BaseCommand
Instance Method Details
#call(shell:) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/herve/cli/shell_commands/init.rb', line 10 def call(shell:, **) case shell when "bash" init_bash when "zsh" init_zsh else raise Error, "unsupported shell '#{shell}'" end end |