Class: FalkorLib::CLI::App

Inherits:
Thor
  • Object
show all
Includes:
FalkorLib::Common, Thor::Actions
Defined in:
lib/falkorlib/cli.rb

Overview

Main Application

Instance Method Summary collapse

Methods included from FalkorLib::Common

ask, bold, command?, cyan, error, exec_or_exit, execute, execute_in_dir, green, info, init_from_template, init_rvm, list_items, load_config, nice_execute, normalized_path, not_implemented, really_continue?, red, run, select_from, show_diff_and_write, store_config, warning, write_from_erb_template, write_from_template

Instance Method Details

#config(key = '') ⇒ Object



56
57
58
59
60
61
# File 'lib/falkorlib/cli.rb', line 56

def config(key = '')
  info "Thor options:"
  puts options.to_yaml
  info "FalkorLib internal configuration:"
  puts FalkorLib.config.to_yaml
end

#versionObject



78
79
80
# File 'lib/falkorlib/cli.rb', line 78

def version
  say "Falkor[Lib] version " + FalkorLib::VERSION, :yellow # + "on ruby " + `ruby --version`
end