Sha256: 1169bb37c7f8aa976c0cffaeaddbdf065fdc46a0a33b44b200e97be6ec9609cf

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

Contents

require 'markdo/command'

module Markdo
  class HelpCommand < Command
    def run
      @stderr.puts <<-EOF
Markdown-based task manager.

    add "string"          Add a task to the inbox.  (Set $MARKDO_ROOT and $MARKDO_INBOX.)
    edit                  Edit $MARKDO_ROOT in $EDITOR.
    help, --help          Display this help text.
    ics                   Make an iCalendar feed of all due dates in Markdo.  Can be imported
                          or subscribed to if on a remote server.
    overview              Get overview of overdue, starred, today's, and tomorrow's tasks.
    overdue               Search *.md files for previous dates.  (YYYY-MM-DD format.)
    tag "string"          Search *.md files for @string.
    today                 Search *.md files for today's date.  (YYYY-MM-DD format.)
    tomorrow              Search *.md files for tomorrow's date.  (YYYY-MM-DD format.)
    rss                   Make an RSS feed of all links in Markdo.  Useful as a live bookmark.
    star, starred         Search *.md files for @star.
    summary               Display counts.
    query, q "string"     Search *.md files for string.
    week                  Search *.md files for dates in the next week.  (YYYY-MM-DD format.)
    version, --version    Display the version.
EOF

      exit 1
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
markdo-0.1.9 lib/markdo/help_command.rb
markdo-0.1.8 lib/markdo/help_command.rb