Class: Suma::Cli::Export

Inherits:
Thor
  • Object
show all
Defined in:
lib/suma/cli/export.rb

Overview

Export command. Thin Thor adapter that constructs Suma::ExpressSchema instances from manifest entries or standalone .exp files, then delegates the actual writing to Suma::SchemaExporter.

The schema-type → output-subdirectory mapping lives in Suma::SchemaCategory, the single source of truth. The exporter itself never classifies — it consumes loaded ExpressSchema objects whose output paths were set by this adapter.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


105
106
107
# File 'lib/suma/cli/export.rb', line 105

def self.exit_on_failure?
  true
end

Instance Method Details

#export(*files) ⇒ Object



28
29
30
31
32
33
# File 'lib/suma/cli/export.rb', line 28

def export(*files)
  require "expressir"

  validate_files(files)
  run(files, options)
end