Class: ExportEnv::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/export_env/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

#export(file = nil) ⇒ Object



22
23
24
25
# File 'lib/export_env/cli.rb', line 22

def export(file = nil)
  require_relative "exporter"  
  puts ExportEnv::Exporter.new(file).process!
end

#versionObject



15
16
17
18
# File 'lib/export_env/cli.rb', line 15

def version
  require_relative "version"
  puts "v#{ExportEnv::VERSION}"
end