Class: SyntaxTree::CLI::Debug
Overview
An action of the CLI that formats the source twice to check if the first format is not idempotent.
Defined Under Namespace
Classes: NonIdempotentFormatError
Instance Method Summary
collapse
Instance Method Details
#failure ⇒ Object
94
95
96
|
# File 'lib/syntax_tree/cli.rb', line 94
def failure
warn("The listed files could not be formatted idempotently.")
end
|
#run(filepath, source) ⇒ Object
#success ⇒ Object
90
91
92
|
# File 'lib/syntax_tree/cli.rb', line 90
def success
puts("All files can be formatted idempotently.")
end
|