Class: Suma::Cli::Reformat
- Inherits:
-
Thor
- Object
- Thor
- Suma::Cli::Reformat
- Defined in:
- lib/suma/cli/reformat.rb
Overview
Reformat command for reformatting EXPRESS files.
Thin Thor adapter around Suma::ExpressReformatter: argument parsing, file discovery, and read/transform/write. The content transformation itself lives in the deep module and is tested independently.
Instance Method Summary collapse
Instance Method Details
#reformat(express_file_path) ⇒ Object
19 20 21 22 23 |
# File 'lib/suma/cli/reformat.rb', line 19 def reformat(express_file_path) files = discover_files(express_file_path) ensure_files_found!(files, express_file_path) process_files(files) end |