Class: Jets::CLI::Env

Inherits:
Thor::Base show all
Defined in:
lib/jets/cli/env.rb,
lib/jets/cli/env/get.rb,
lib/jets/cli/env/set.rb,
lib/jets/cli/env/base.rb,
lib/jets/cli/env/list.rb,
lib/jets/cli/env/parse.rb,
lib/jets/cli/env/unset.rb

Defined Under Namespace

Modules: Parse Classes: Base, Get, List, Set, Unset

Instance Method Summary collapse

Methods inherited from Thor::Base

dispatch, exit_on_failure?, help_flags, version_flags, website

Methods included from Thor::Help

#capture_stdout_for_help, #help, #paginate_output

Instance Method Details

#get(name) ⇒ Object



13
14
15
# File 'lib/jets/cli/env.rb', line 13

def get(name)
  Get.new(options.merge(key: name)).run
end

#listObject



8
9
10
# File 'lib/jets/cli/env.rb', line 8

def list
  List.new(options).run
end

#set(*values) ⇒ Object



19
20
21
# File 'lib/jets/cli/env.rb', line 19

def set(*values)
  Set.new(options.merge(values: values)).run
end

#unset(*names) ⇒ Object



25
26
27
# File 'lib/jets/cli/env.rb', line 25

def unset(*names)
  Unset.new(options.merge(names: names)).run
end