Sha256: 714ffd5a78e8d1178d6c1261624172e83516b41337ebcabdb4371a070c337e06

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 KB

Contents

require 'markdo/commands/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.
    forecast              Display tasks due in the next week.  (@due(YYYY-MM-DD) format.)
    help, --help          Display this help text.
    inbox                 Display contents of $MARKDO_INBOX.
    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 tasks due on previous dates.  (@due(YYYY-MM-DD) format.)
    process               Move lines from $MARKDO_INBOX to other files, one at a time.
    tag "string"          Search *.md files for @string.
    today                 Search *.md files for tasks due today.  (@due(YYYY-MM-DD) format.)
    tomorrow              Search *.md files for tasks due tomorrow.  (@due(YYYY-MM-DD) format.)
    star, starred         Search *.md files for @star.
    summary               Display counts.
    query, q "string"     Search *.md files for string.
    week                  Search *.md files for due dates in the next week.  (@due(YYYY-MM-DD) format.)
    version, --version    Display the version.
EOF

      Kernel.exit(1)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
markdo-0.2.0 lib/markdo/commands/help_command.rb