AzuCLI::Commands::Base
Inherits Reference < Object
Base command class for all Azu CLI commands
Constructors
new(name : String, description : String = "")
SourceInstance methods
all_args
Sourceall_args=(all_args : Array(String))
Sourceargs
Sourceargs=(args : Array(String))
Sourcedescription
Sourcedescription=(description : String)
Sourcefatal_error(message : String, category : String = Config::ErrorCategory::UNKNOWN) : NoReturn
Handle fatal error (always exits)
filesystem_error(message : String, category : String = Config::ErrorCategory::IO_ERROR) : Result
Handle file system error
handle_error(message : String, category : String = Config::ErrorCategory::UNKNOWN, severity : Int32 = Config::ErrorSeverity::ERROR, exit_code : Int32 = Config::EXIT_FAILURE, should_exit : Bool = false) : Result
Handle error with proper logging and optional exit
name
Sourcename=(name : String)
Sourceoptions
Sourceoptions=(options : Hash(String, String))
Sourcewarning(message : String, category : String = Config::ErrorCategory::UNKNOWN)
Handle warning (logs but doesn't fail)
with_error_handling(category : String = Config::ErrorCategory::RUNTIME_ERROR, &)
Wrap exception handling with consistent error reporting