Class: Rbnotes::Commands::Command
- Inherits:
-
Object
- Object
- Rbnotes::Commands::Command
- Defined in:
- lib/rbnotes/commands.rb
Overview
The base class for a command class.
Direct Known Subclasses
Add, Builtins::Conf, Builtins::Repo, Builtins::Stamp, Builtins::Time, Builtins::Usage, Builtins::Version, Commands, Delete, Export, Help, Import, List, Pick, Search, Show, Statistics, Update
Instance Method Summary collapse
-
#description ⇒ Object
Short description of each command.
-
#execute(args, conf) ⇒ Object
:call-seq: execute(Array, Hash) -> nil.
-
#help ⇒ Object
Shows the help message for the command.
Instance Method Details
#description ⇒ Object
Short description of each command.
17 |
# File 'lib/rbnotes/commands.rb', line 17 def description; nil; end |
#execute(args, conf) ⇒ Object
:call-seq:
execute(Array, Hash) -> nil
- Array: arguments for each command
- Hash : rbnotes configuration
26 27 28 |
# File 'lib/rbnotes/commands.rb', line 26 def execute(args, conf) Builtins.default_cmd.new.execute(args, conf) end |