Class: Herve::CLI::ShellCommands::Init

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/herve/cli/shell_commands/init.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#config, #logger

Instance Method Summary collapse

Methods inherited from BaseCommand

inherited

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