Class: Ea::Cli::Command::Parse

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

Overview

ea parse FILE [--format json|yaml]

Parses the EA file (QEA or Sparx XMI) to a Lutaml::Uml::Document and serializes it. Requires lutaml-uml.

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



11
12
13
14
# File 'lib/ea/cli/command/parse.rb', line 11

def call
  document = parse_to_uml(file_path)
  formatter_output(document)
end