Class: TooDoo::Commands::Help

Inherits:
Base
  • Object
show all
Defined in:
lib/toodoo/commands/help.rb

Overview

list available commands usage: td help

Instance Attribute Summary

Attributes inherited from Base

#args, #store

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from TooDoo::Commands::Base

Instance Method Details

#descriptionObject



8
9
10
11
12
13
# File 'lib/toodoo/commands/help.rb', line 8

def description
  <<~END
    list available commands
    usage: td help
  END
end

#perform!Object



19
20
21
# File 'lib/toodoo/commands/help.rb', line 19

def perform!
  puts build_message
end

#run!Object



15
16
17
# File 'lib/toodoo/commands/help.rb', line 15

def run!
  perform!
end