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
24
25
26
27
28
# 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.\nics                   Make an iCalendar feed of all due dates in Markdo.  Can be imported\n                      or subscribed to if on a remote server.\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 @string.\ntoday                 Search *.md files for today's date.  (YYYY-MM-DD format.)\ntomorrow              Search *.md files for tomorrow's date.  (YYYY-MM-DD format.)\nrss                   Make an RSS feed of all links in Markdo.  Useful as a live bookmark.\nstar, starred         Search *.md files for @star.\nsummary               Display counts.\nquery, q \"string\"     Search *.md files for string.\nweek                  Search *.md files for dates in the next week.  (YYYY-MM-DD format.)\nversion, --version    Display the version.\n"

  exit 1
end