Class: Suma::Cli::Core
- Inherits:
-
Thor
- Object
- Thor
- Suma::Cli::Core
- Extended by:
- ThorExt::Start
- Defined in:
- lib/suma/cli.rb
Overview
Core command class for handling CLI entrypoints
Instance Method Summary collapse
Methods included from ThorExt::Start
Instance Method Details
#build(_site_manifest) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/suma/cli.rb', line 18 def build(_site_manifest) # # If no arguments, add an empty array to ensure the default command is triggered # args = [] if args.empty? require_relative "cli/build" Cli::Build.start end |
#links(*_args) ⇒ Object
26 27 28 29 |
# File 'lib/suma/cli.rb', line 26 def links(*_args) require_relative "cli/links" Cli::Links.start end |
#reformat(_express_file_path) ⇒ Object
36 37 38 39 |
# File 'lib/suma/cli.rb', line 36 def reformat(_express_file_path) require_relative "cli/reformat" Cli::Reformat.start end |