Class: Noir::Command

Inherits:
Base::Command show all
Defined in:
lib/noir/command.rb

Defined Under Namespace

Classes: Calculate, Completion, Edit, Format, Help, Init, New

Class Method Summary collapse

Methods inherited from Base::Command

check_command_not_found, description, sub_commands

Class Method Details

.execute(*args) ⇒ Object



3
4
5
6
7
# File 'lib/noir/command.rb', line 3

def execute *args
  # if arguments missing. call help.
  Noir::Command::Help.execute if args.size.zero?
  check_command_not_found(*args)
end