Class: Canon::Cli
- Inherits:
-
Thor
- Object
- Thor
- Canon::Cli
- Defined in:
- lib/canon/cli.rb
Overview
Command-line interface for Canon
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
11 12 13 |
# File 'lib/canon/cli.rb', line 11 def self.exit_on_failure? true end |
Instance Method Details
#diff(file1, file2) ⇒ Object
265 266 267 |
# File 'lib/canon/cli.rb', line 265 def diff(file1, file2) Commands::DiffCommand.new().run(file1, file2) end |
#format(file) ⇒ Object
65 66 67 |
# File 'lib/canon/cli.rb', line 65 def format(file) Commands::FormatCommand.new().run(file) end |