Sha256: 6a20f040d8b419eac899a411d923b62f59daf5b8a8acf91840b0d7cf74cd823d

Contents?: true

Size: 786 Bytes

Versions: 1

Compression:

Stored size: 786 Bytes

Contents

# frozen_string_literal: true

module TooDoo
  module Commands
    # list available commands
    # usage: td help
    class Help < Base
      def description
        <<~END
          list available commands
          usage: td help
        END
      end

      def run!
        perform!
      end

      def perform!
        puts build_message
      end

      private

      def build_message
        <<~END
          usage:

          help              - list available commands
          add <body>      - add a new task
          done <body>     - mark task as done
          remove <body>   - remove a task
          list              - list tasks
          history           - list done tasks
          clear             - clear task lists
        END
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
toodoo-0.1.1 lib/toodoo/commands/help.rb