Class: Kumome::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/kumome/cli.rb

Instance Method Summary collapse

Instance Method Details

#configObject



34
35
36
# File 'lib/kumome/cli.rb', line 34

def config
  puts File.read(Kumome::Config.parse_argv(ARGV))
end

#statObject



22
23
24
25
26
27
28
29
30
31
# File 'lib/kumome/cli.rb', line 22

def stat
  Kumome::Option.load(options)
  unless Kumome::Option.selected_resource_options?
    help('stat')
    return
  end
  data = Kumome::Stat.data
  out_table(data)
  # @TODO tailf stat
end