Class: Heyterminal::Cli::Commands::List

Inherits:
Heyterminal::CliCommand show all
Defined in:
lib/heyterminal/cli.rb

Instance Method Summary collapse

Methods inherited from Heyterminal::CliCommand

#safe_call

Instance Method Details

#call(**options) ⇒ Object



34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/heyterminal/cli.rb', line 34

def call(**options)
  safe_call do
   Heyterminal::Runner.load_default(options.fetch(:config, nil))
   list = Heyterminal::Runner.expressions_commands

   puts 'List of commands'
   puts '-----------------'
   list.each do |exp|
     puts "* #{exp}"
   end
  end
end