Module: Brainiac::Plugins::Fizzy::Cli
- Defined in:
- lib/brainiac/plugins/fizzy/cli.rb
Overview
CLI subcommands for brainiac-fizzy plugin.
Invoked when a user runs brainiac fizzy <command>.
Constant Summary collapse
- BRAINIAC_DIR =
ENV.fetch("BRAINIAC_DIR", File.join(Dir.home, ".brainiac"))
- FIZZY_CONFIG_FILE =
File.join(BRAINIAC_DIR, "fizzy.json")
Class Method Summary collapse
Class Method Details
.run(args) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/brainiac/plugins/fizzy/cli.rb', line 16 def run(args) command = args.shift case command when "config" cmd_config when "status" cmd_status when "setup" cmd_setup else print_help end end |