Class: Worque::CLI

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

Instance Method Summary collapse

Instance Method Details

#pushObject



37
38
39
40
# File 'lib/worque/cli.rb', line 37

def push
  default_opts = Worque::DefaultConfig.load!.data
  $stdout.puts Worque::Command::Push::Action.run(default_opts.merge options)
end

#todoObject



20
21
22
23
24
25
26
27
28
29
# File 'lib/worque/cli.rb', line 20

def todo
  begin
    default_opts = Worque::DefaultConfig.load!.data
    result = Worque::Command::Todo::Action.run(default_opts.merge options)
  rescue InvalidPath => e
    $stderr.puts e.message
  end

  $stdout.puts result
end