Class: Ea::Cli::Command::Svg

Inherits:
Base
  • Object
show all
Defined in:
lib/ea/cli/command/svg.rb

Overview

ea svg NAME FILE [--output=PATH] [--mode=ea|thin] ea svg --all FILE [--output-dir=PATH] [--mode=ea|thin]

Renders one (NAME) or every (--all) diagram from a QEA or XMI file into standalone SVG using the umldi content (placed element bounds + connector waypoints) captured in Ea::Model::Diagram.

Default emitter is EaEmitter::Document which mirrors EA's SVG structure (DOCTYPE, layered groups, EA-style markers). Pass --mode=thin for the simpler Renderer output.

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Ea::Cli::Command::Base

Instance Method Details

#callObject



20
21
22
23
24
# File 'lib/ea/cli/command/svg.rb', line 20

def call
  return render_all if options[:all]

  render_one
end