Sha256: 520eba794b50fe311ef0348acf4802af285df9a57387ae4eb327d61910cc2290

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

module TooDoo
  # Commands is a pack of availalble command logics
  # command entities reprsent their logic and an output
  module Commands
    COMMANDS = {
      list:    List,
      add:     Add,
      done:    Done,
      remove:  Remove,
      history: History,
      help:    Help,
      clear:   Clear,
      command_missing: List,

      l: List,
      a: Add,
      d: Done,
      r: Remove,
      h: History,

      :+ => Add,
      :- => Remove,
      :'!' => Done,
      :'.' => List
    }.freeze
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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