Class: Lutaml::Xsd::Commands::ElementCommand

Inherits:
Thor
  • Object
show all
Defined in:
lib/lutaml/xsd/commands/element_command.rb

Overview

Element exploration commands Handles listing, showing, and analyzing element definitions

Defined Under Namespace

Classes: ByNamespaceCommand, ListCommand, ShowCommand, TreeCommand, UsageCommand

Instance Method Summary collapse

Instance Method Details

#by_namespace(package_path) ⇒ Object



134
135
136
# File 'lib/lutaml/xsd/commands/element_command.rb', line 134

def by_namespace(package_path)
  ByNamespaceCommand.new(package_path, options).run
end

#list(package_file) ⇒ Object



46
47
48
# File 'lib/lutaml/xsd/commands/element_command.rb', line 46

def list(package_file)
  ListCommand.new(package_file, options).run
end

#show(element_name, package_file) ⇒ Object



79
80
81
# File 'lib/lutaml/xsd/commands/element_command.rb', line 79

def show(element_name, package_file)
  ShowCommand.new(element_name, package_file, options).run
end

#tree(element_name, package_file) ⇒ Object



102
103
104
# File 'lib/lutaml/xsd/commands/element_command.rb', line 102

def tree(element_name, package_file)
  TreeCommand.new(element_name, package_file, options).run
end

#usage(element_name, package_file) ⇒ Object



118
119
120
# File 'lib/lutaml/xsd/commands/element_command.rb', line 118

def usage(element_name, package_file)
  UsageCommand.new(element_name, package_file, options).run
end