Class: Sfctl::CLI

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

#help(*args) ⇒ Object



16
17
18
19
20
21
# File 'lib/sfctl/cli.rb', line 16

def help(*args)
  font = TTY::Font.new(:standard)
  pastel = Pastel.new(enabled: !options['no-color'])
  puts pastel.yellow(font.write('sfctl'))
  super
end

#versionObject



29
30
31
32
# File 'lib/sfctl/cli.rb', line 29

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