Class: Markdo::HelpCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/markdo/help_command.rb

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from Markdo::Command

Instance Method Details

#runObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/markdo/help_command.rb', line 5

def run
  @stderr.puts "Markdown-based task manager.\n\nadd \"string\"          Add a task to the inbox.  (Set $MARKDO_ROOT and $MARKDO_INBOX.)\nedit                  Edit $MARKDO_ROOT in $EDITOR.\nhelp, --help          Display this help text.\noverview              Get overview of overdue, starred, today's, and tomorrow's tasks.\noverdue               Search *.md files for previous dates.  (YYYY-MM-DD format.)\ntag \"string'          Search *.md files for @tag.\ntoday                 Search *.md files for today's date.  (YYYY-MM-DD format.)\ntomorrow              Search *.md files for tomorrow's date.  (YYYY-MM-DD format.)\nstar, starred         Search *.md files for @star.\nquery, q \"string\"     Search *.md files for string.\nversion, --version    Display the version.\n"

  exit 1
end