Sha256: d99750ff26e9bc504d59083c9c792ad1e5a0127ead4974679768bf8d7fe9e804

Contents?: true

Size: 435 Bytes

Versions: 8

Compression:

Stored size: 435 Bytes

Contents

module Pah
  class Commands
    class << self

      def find_by_name(name)
        COMMAND_BY_NAME[name.to_s.strip] || Pah::Commands::App
      end

    end
  end
end

require 'colored'
require 'pah/commands/base'
require 'pah/commands/version'
require 'pah/commands/help'
require 'pah/commands/app'

COMMAND_BY_NAME = {
  "" => Pah::Commands::Help,
  "-v" => Pah::Commands::Version,
  "--version" => Pah::Commands::Version
}.freeze

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pah-0.0.28 lib/pah/commands.rb
pah-0.0.27 lib/pah/commands.rb
pah-0.0.26 lib/pah/commands.rb
pah-0.0.25 lib/pah/commands.rb
pah-0.0.24 lib/pah/commands.rb
pah-0.0.23 lib/pah/commands.rb
pah-0.0.22 lib/pah/commands.rb
pah-0.0.21 lib/pah/commands.rb