Documentation
¶
Index ¶
- func Blank()
- func Bold(text string) string
- func CheckFail(format string, args ...any)
- func CheckOK(format string, args ...any)
- func Gray(text string) string
- func Green(text string) string
- func Header(title string)
- func Info(format string, args ...any)
- func Println(format string, args ...any)
- func Red(text string) string
- func Success(format string, args ...any)
- func Warn(format string, args ...any)
- func Yellow(text string) string
- type Error
- func ErrAlreadyUsingVersion(version string) *Error
- func ErrBackupFailed(err error) *Error
- func ErrCannotUninstallCurrent(version string) *Error
- func ErrCannotUninstallOnlyVersion(version string) *Error
- func ErrClaudeNotInstalled() *Error
- func ErrCreateDirFailed(path string, err error) *Error
- func ErrHomeDirNotFound(err error) *Error
- func ErrInvalidVersion(reason string) *Error
- func ErrNodeModulesNotFound() *Error
- func ErrNpmInstallFailed(version, command, output string) *Error
- func ErrNpmNotFound() *Error
- func ErrRemoveNodeModulesFailed(err error) *Error
- func ErrRunningAsRoot() *Error
- func ErrSwitchVerifyFailed(version string) *Error
- func ErrSymlinkFailed(err error) *Error
- func ErrUninstallFailed(version string, err error) *Error
- func ErrUnsupportedPlatform() *Error
- func ErrVerifyInstallFailed(version, expected, actual string) *Error
- func ErrVersionAlreadyInstalled(version string) *Error
- func ErrVersionDirNotFound(version string) *Error
- func ErrVersionNotFound(version string) *Error
- func ErrVersionNotInstalled(version string) *Error
- func ErrWriteFileFailed(path string, err error) *Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
Message string // Primary error message
Reasons []string // Possible reasons for the error
Solutions []string // Suggested solutions
Command string // The command that failed (optional)
Output string // Command output or additional details (optional)
}
Error represents a user-facing error with context
func ErrAlreadyUsingVersion ¶
func ErrBackupFailed ¶
func ErrClaudeNotInstalled ¶
func ErrClaudeNotInstalled() *Error
func ErrCreateDirFailed ¶
func ErrHomeDirNotFound ¶
func ErrInvalidVersion ¶
func ErrNodeModulesNotFound ¶
func ErrNodeModulesNotFound() *Error
func ErrNpmInstallFailed ¶
func ErrNpmNotFound ¶
func ErrNpmNotFound() *Error
func ErrRunningAsRoot ¶
func ErrRunningAsRoot() *Error
func ErrSwitchVerifyFailed ¶
func ErrSymlinkFailed ¶
func ErrUninstallFailed ¶
func ErrUnsupportedPlatform ¶
func ErrUnsupportedPlatform() *Error
func ErrVerifyInstallFailed ¶
func ErrVersionDirNotFound ¶
func ErrVersionNotFound ¶
func ErrVersionNotInstalled ¶
func ErrWriteFileFailed ¶
Click to show internal directories.
Click to hide internal directories.