Documentation
¶
Index ¶
- func FormatOutputWithWarning(text string) string
- func IsSiteCode(s string) bool
- func IsUUID(s string) bool
- func MaskString(s string) string
- func PrintDetailWithWarning(format string, args ...interface{})
- func PrintTextWithWarning(text string)
- func PrintWithWarning(format string, args ...interface{})
- func PromptForConfirmation(message string) bool
- func ResolveSiteID(ctx context.Context, client api.Client, cfg *config.Config, identifier string) (string, error)
- func ResolveSiteIDViper(ctx context.Context, client api.Client, identifier string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatOutputWithWarning ¶
FormatOutputWithWarning formats output with warning if cache integrity is compromised This is a helper function to ensure consistent output formatting in commands
func IsSiteCode ¶
IsSiteCode checks if a string matches the site code format \w{2}\-\w{3,4}\-\w{1,10}
func MaskString ¶
MaskString masks sensitive information like API tokens This is a wrapper around common.MaskString for backward compatibility
func PrintDetailWithWarning ¶
func PrintDetailWithWarning(format string, args ...interface{})
PrintDetailWithWarning prints a detail line (like ID, Name, etc.) without applying blue color Use this for detail lines that should appear in regular text formatting
func PrintTextWithWarning ¶
func PrintTextWithWarning(text string)
PrintTextWithWarning prints a text string with warning if cache integrity is compromised Use this function when you have a pre-formatted string (not a format string) Section headings are displayed in blue
func PrintWithWarning ¶
func PrintWithWarning(format string, args ...interface{})
PrintWithWarning prints a line of text with warning if cache integrity is compromised Section headings are displayed in blue
func PromptForConfirmation ¶
PromptForConfirmation asks the user for confirmation and returns true if confirmed
Types ¶
This section is empty.