Class: CodeQualia::CLI
- Inherits:
-
Object
- Object
- CodeQualia::CLI
- Defined in:
- lib/code_qualia/cli.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ CLI
constructor
A new instance of CLI.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ CLI
Returns a new instance of CLI.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/code_qualia/cli.rb', line 9 def initialize(argv) @argv = argv = { top_n: 3, config: './qualia.yml', directory: Dir.pwd, format: 'human', verbose: false } end |
Instance Method Details
#run ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/code_qualia/cli.rb', line 20 def run case @command when 'generate' generate_analysis when 'install' install_config else show_help end end |