Class: Kitsune::Kit::CLI
- Inherits:
-
Thor
- Object
- Thor
- Kitsune::Kit::CLI
- Defined in:
- lib/kitsune/kit/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.dispatch(m, args, options, config) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/kitsune/kit/cli.rb', line 25 def self.dispatch(m, args, , config) if args.include?("-v") || args.include?("--version") puts "Kitsune Kit v#{Kitsune::Kit::VERSION}" exit(0) end unless ["version", "init", "switch_env", "help", nil].include?(args.first) Kitsune::Kit::EnvLoader.load! end super end |