Class: Ckancli::CLI

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

Overview

Handle the application command line parsing and the dispatch to various command objects

Constant Summary collapse

Error =

Error raised by this runner

Class.new(StandardError)

Instance Method Summary collapse

Instance Method Details

#uploadObject

[View source]

33
34
35
36
37
38
39
40
# File 'lib/ckancli/cli.rb', line 33

def upload(*)
  if options[:help]
    invoke :help, ['upload']
  else
    require_relative 'commands/upload'
    Ckancli::Commands::Upload.new(options).execute
  end
end