Class: Markdo::HelpCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/markdo/commands/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
29
30
# File 'lib/markdo/commands/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.\nforecast              Display tasks due in the next week.  (@due(YYYY-MM-DD) format.)\nhelp, --help          Display this help text.\ninbox                 Display contents of $MARKDO_INBOX.\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 tasks due on previous dates.  (@due(YYYY-MM-DD) format.)\nprocess               Move lines from $MARKDO_INBOX to other files, one at a time.\ntag \"string\"          Search *.md files for @string.\ntoday                 Search *.md files for tasks due today.  (@due(YYYY-MM-DD) format.)\ntomorrow              Search *.md files for tasks due tomorrow.  (@due(YYYY-MM-DD) format.)\nstar, starred         Search *.md files for @star.\nsummary               Display counts.\nquery, q \"string\"     Search *.md files for string.\nweek                  Search *.md files for due dates in the next week.  (@due(YYYY-MM-DD) format.)\nversion, --version    Display the version.\n"

  Kernel.exit(1)
end