Sha256: ab4531c070253ccafd8c6c7d82f132ac819856cc4eca99fdbe0d29f66185c606
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 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 '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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pah-0.0.20 | lib/pah/commands.rb |
pah-0.0.19 | lib/pah/commands.rb |