Sha256: 84e4da8498307fab1e437e044fd6081f456fedbd730f362efebf4b78513b7099
Contents?: true
Size: 793 Bytes
Versions: 3
Compression:
Stored size: 793 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 'use', 'u' sub_command_arg = argv[1] Pbmenv.use(sub_command_arg) when 'uninstall' sub_command_arg = argv[1] Pbmenv.uninstall(sub_command_arg) when '--version' puts Pbmenv::VERSION else puts <<~EOH Unknown command: available commands: available_versions, versions, install, use, uninstall EOH end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pbmenv-0.1.8 | lib/pbmenv/cli.rb |
pbmenv-0.1.7 | lib/pbmenv/cli.rb |
pbmenv-0.1.6 | lib/pbmenv/cli.rb |