Sha256: 788444ccbd52554288c4f05f97f3f4e7b026db01d1f34e8192bfba49638576a5
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 Bytes
Contents
module Pbmenv class CLI def self.run(argv) sub_command = argv[0] case sub_command when 'available_versions', 'av' Pbmenv.available_versions.each { |x| puts x } when 'versions', 'list' Pbmenv.versions.each { |x| puts x } when 'install', 'i' sub_command_arg = argv[1] Pbmenv.install(sub_command_arg) when 'uninstall' sub_command_arg = argv[1] Pbmenv.uninstall(sub_command_arg) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pbmenv-0.1.2 | lib/pbmenv/cli.rb |
pbmenv-0.1.1 | lib/pbmenv/cli.rb |
pbmenv-0.1.0 | lib/pbmenv/cli.rb |