Class: Ea::Cli::Command::List

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

Overview

ea list FILE [--type TYPE]

Lists model elements from a QEA file. With --type, returns elements of one kind (class/interface/package/diagram/connector/enum). Without --type, returns a summary of counts per kind.

Operates standalone — does not require 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



14
15
16
17
18
19
20
21
22
# File 'lib/ea/cli/command/list.rb', line 14

def call
  rows =
    if options[:type]
      list_by_type(options[:type])
    else
      list_summary
    end
  formatter.render(rows, columns: columns_for_current_mode)
end