Class: Lutaml::Xsd::Commands::TreeCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Lutaml::Xsd::Commands::TreeCommand
- Defined in:
- lib/lutaml/xsd/commands/tree_command.rb
Overview
Tree command for visualizing LXR package contents
Displays package contents in a colorized tree structure with file sizes and categorization. Supports both tree and flat list formats.
Instance Attribute Summary collapse
-
#package_path ⇒ Object
readonly
Returns the value of attribute package_path.
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#initialize(package_path, options = {}) ⇒ TreeCommand
constructor
Initialize tree command.
-
#run ⇒ void
Execute the tree command.
Constructor Details
#initialize(package_path, options = {}) ⇒ TreeCommand
Initialize tree command
35 36 37 38 |
# File 'lib/lutaml/xsd/commands/tree_command.rb', line 35 def initialize(package_path, = {}) super() @package_path = package_path end |
Instance Attribute Details
#package_path ⇒ Object (readonly)
Returns the value of attribute package_path.
26 27 28 |
# File 'lib/lutaml/xsd/commands/tree_command.rb', line 26 def package_path @package_path end |
Instance Method Details
#run ⇒ void
This method returns an undefined value.
Execute the tree command
43 44 45 46 47 48 |
# File 'lib/lutaml/xsd/commands/tree_command.rb', line 43 def run validate_package_file display_tree rescue StandardError => e handle_error(e) end |