Class: Lutaml::Xsd::Commands::BaseCommand
- Inherits:
-
Object
- Object
- Lutaml::Xsd::Commands::BaseCommand
- Defined in:
- lib/lutaml/xsd/commands/base_command.rb
Overview
Base class for all CLI commands Provides common functionality for error handling and output formatting
Direct Known Subclasses
CoverageCommand, ElementCommand::ByNamespaceCommand, ElementCommand::ListCommand, ElementCommand::ShowCommand, ElementCommand::TreeCommand, ElementCommand::UsageCommand, GenerateSpaCommand, InitCommand, MetadataCommand::GetCommand, MetadataCommand::SetCommand, NamespaceCommand::ListCommand, NamespaceCommand::PrefixesCommand, NamespaceCommand::RemapCommand, NamespaceCommand::ShowCommand, NamespaceCommand::TreeCommand, PackageCommand::AutoBuildCommand, PackageCommand::BuildCommand, PackageCommand::ExtractCommand, PackageCommand::InfoCommand, PackageCommand::QuickCommand, PackageCommand::SchemasCommand, PackageCommand::ValidateCommand, PackageCommand::ValidateResolutionCommand, SearchCommand, StatsCommand::ShowCommand, TreeCommand, TypeCommand::BatchFindCommand, TypeCommand::DependenciesCommand, TypeCommand::DependentsCommand, TypeCommand::FindCommand, TypeCommand::HierarchyCommand, TypeCommand::ListCommand, ValidateCommand, VerifyCommand
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
-
#run ⇒ Object
Run the command Must be implemented by subclasses.
Constructor Details
#initialize(options = {}) ⇒ BaseCommand
Returns a new instance of BaseCommand.
15 16 17 |
# File 'lib/lutaml/xsd/commands/base_command.rb', line 15 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
13 14 15 |
# File 'lib/lutaml/xsd/commands/base_command.rb', line 13 def @options end |
Instance Method Details
#run ⇒ Object
Run the command Must be implemented by subclasses
21 22 23 |
# File 'lib/lutaml/xsd/commands/base_command.rb', line 21 def run raise NotImplementedError, "Subclass must implement #run method" end |