Class: Suma::Cli::Core

Inherits:
Thor
  • Object
show all
Extended by:
ThorExt::Start
Defined in:
lib/suma/cli.rb

Overview

Core command class for handling CLI entrypoints

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ThorExt::Start

extended, start

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/suma/cli.rb', line 39

def self.exit_on_failure?
  true
end

Instance Method Details

#build(_site_manifest) ⇒ Object



19
20
21
22
23
24
# File 'lib/suma/cli.rb', line 19

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

#reformat(_express_file_path) ⇒ Object



31
32
33
34
# File 'lib/suma/cli.rb', line 31

def reformat(_express_file_path)
  require_relative "cli/reformat"
  Cli::Reformat.start
end