Class: Ea::Cli::Command::Diagrams
- Defined in:
- lib/ea/cli/command/diagrams.rb
Overview
ea diagrams ACTION FILE [NAME]
Actions:
list FILE — list diagrams in a QEA/XMI file
extract FILE NAME — render the named diagram to SVG
Both actions use the modern Ea::Model pipeline (parsed via Ea::Sources::Qea/Xmi::Adapter, rendered via Ea::Svg::EaEmitter::Document). No lutaml-uml dependency.
Constant Summary collapse
- ACTIONS =
%w[list extract].freeze
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Ea::Cli::Command::Base
Instance Method Details
#call ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/ea/cli/command/diagrams.rb', line 18 def call case action when "list" then list when "extract" then extract else raise Ea::Cli::UnknownAction.new(action, valid: ACTIONS) end end |