Class: Ea::Cli::Command::Render

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

Overview

ea render NAME FILE [--format=svg|png|pdf] ea render --all FILE [--output-dir=PATH]

Unified rendering command. Currently supports SVG; PNG and PDF are routed through SVG intermediate (planned: rsvg-convert / headless chrome). The original ea svg command is preserved as a backward-compatible alias.

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



16
17
18
19
20
# File 'lib/ea/cli/command/render.rb', line 16

def call
  return render_all if options[:all]

  render_one
end