Sha256: 8eb12418f628c9f3694c8306cfe443a022e75046a370c5bd4b3c33b863a4cce2

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module TooDoo
  module Commands
    # clear task lists
    # usage: td clear
    class Clear < Base
      def description
        <<~END
          clear task lists
          usage: td clear
        END
      end

      def message
        'lists are empty'
      end

      def run!
        store.remove_all
        puts message
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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