Documentation
¶
Overview ¶
Copyright © 2025 KubeRocketAI Team
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 KubeRocketAI Team ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
type ErrorHandler struct {
// contains filtered or unexported fields
}
ErrorHandler provides colorized error handling for CLI commands
func NewErrorHandler ¶
func NewErrorHandler() *ErrorHandler
NewErrorHandler creates a new error handler with color support
func (*ErrorHandler) HandleError ¶
func (e *ErrorHandler) HandleError(err error, message string)
HandleError prints a colorized error message and exits with code 1
func (*ErrorHandler) HandleErrorWithCode ¶
func (e *ErrorHandler) HandleErrorWithCode(err error, message string, code int)
HandleErrorWithCode prints a colorized error message and exits with specified code
func (*ErrorHandler) PrintError ¶
func (e *ErrorHandler) PrintError(message string)
PrintError prints a colorized error message without exiting
func (*ErrorHandler) PrintWarning ¶
func (e *ErrorHandler) PrintWarning(message string)
PrintWarning prints a colorized warning message
type OutputHandler ¶
type OutputHandler struct {
// contains filtered or unexported fields
}
OutputHandler provides colorized output functions for CLI commands
func NewOutputHandler ¶
func NewOutputHandler() *OutputHandler
NewOutputHandler creates a new output handler with color support
func (*OutputHandler) PrintError ¶
func (o *OutputHandler) PrintError(message string)
PrintError prints an error message with red color
func (*OutputHandler) PrintInfo ¶
func (o *OutputHandler) PrintInfo(message string)
PrintInfo prints an info message with blue color
func (*OutputHandler) PrintProgress ¶
func (o *OutputHandler) PrintProgress(message string)
PrintProgress prints a progress message with cyan color
func (*OutputHandler) PrintSuccess ¶
func (o *OutputHandler) PrintSuccess(message string)
PrintSuccess prints a success message with green color
func (*OutputHandler) PrintWarning ¶
func (o *OutputHandler) PrintWarning(message string)
PrintWarning prints a warning message with yellow color