Sha256: 2f51d73f487cddd945693f5cbc9807052da44864ea8616c56331c51564ee83f3

Contents?: true

Size: 930 Bytes

Versions: 3

Compression:

Stored size: 930 Bytes

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.
    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 @tag.
    today                 Search *.md files for today's date.  (YYYY-MM-DD format.)
    tomorrow              Search *.md files for tomorrow's date.  (YYYY-MM-DD format.)
    star, starred         Search *.md files for @star.
    query, q "string"     Search *.md files for string.
    version, --version    Display the version.
EOF

      exit 1
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
markdo-0.1.2 lib/markdo/help_command.rb
markdo-0.1.1 lib/markdo/help_command.rb
markdo-0.1.0 lib/markdo/help_command.rb