Class: Npm3ppLister::CLI
- Inherits:
-
Thor
- Object
- Thor
- Npm3ppLister::CLI
- Defined in:
- lib/npm_3pp_lister/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
#list ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/npm_3pp_lister/cli.rb', line 23 def list(*) if [:help] invoke :help, ['list'] else require_relative 'commands/list' Npm3ppLister::Commands::List.new().execute end end |
#version ⇒ Object
15 16 17 18 |
# File 'lib/npm_3pp_lister/cli.rb', line 15 def version require_relative 'version' puts "v#{Npm3ppLister::VERSION}" end |