Class: Canon::Cli

Inherits:
Thor
  • Object
show all
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

Returns:

  • (Boolean)


8
9
10
# File 'lib/canon/cli.rb', line 8

def self.exit_on_failure?
  true
end

Instance Method Details

#diff(file1, file2) ⇒ Object



266
267
268
# File 'lib/canon/cli.rb', line 266

def diff(file1, file2)
  Commands::DiffCommand.new(options).run(file1, file2)
end

#format(file) ⇒ Object



62
63
64
# File 'lib/canon/cli.rb', line 62

def format(file)
  Commands::FormatCommand.new(options).run(file)
end