class Rbnotes::Commands::Command

The base class for a command class.

Public Instance Methods

description() click to toggle source

Short description of each command.

# File lib/rbnotes/commands.rb, line 17
def description; nil; end
execute(Array, Hash) → nil click to toggle source
  • Array: arguments for each command

  • Hash : rbnotes configuration

# File lib/rbnotes/commands.rb, line 26
def execute(args, conf)
  Builtins.default_cmd.new.execute(args, conf)
end
help() click to toggle source

Shows the help message for the command.

# File lib/rbnotes/commands.rb, line 34
def help
  Builtins::Usage.new.execute(nil, nil)
end