Documentation
¶
Index ¶
- Variables
- func ConfirmDangerousAction(prompt, expected string) bool
- func ConfirmOverwrite(path string) bool
- func Error(msg string, err error) error
- func Info(msg string)
- func IsInteractive() bool
- func PadRight(s string, width int) string
- func PrintEnvSummary(env map[string]string)
- func PrintServiceRoleDetail(role *config.ServiceRole)
- func PrintServiceRolePermissions(perm *config.ServiceRolePermsResponse, repoPrincipal string)
- func PrintServiceRoleSecret(keyPair *config.ServiceRoleKeyPair)
- func PromptWithDefault(label, defaultVal string) string
- func RenderDiff(diff cryptoutils.DiffingResult, oldMap, newMap map[string]string, ...)
- func RunActionWithSpinner(title string, action func() error) error
- func RunEnvPicker(projectName string) (string, error)
- func RunForm(fields []FormField, prefills []string) ([]string, error)
- func RunPicker(title string, items []string) (string, error)
- func RunProjectsTable(projects []config.Project) error
- func RunServiceRolesTable(roles []config.ServiceRole) error
- func Spacer()
- func StripANSI(s string) string
- func Success(msg string)
- func Truncate(s string, max int) string
- func VisibleLen(s string) int
- func Warn(msg string)
- type FormField
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Colors ColorSuccess = lipgloss.Color("2") ColorError = lipgloss.Color("1") ColorWarn = lipgloss.Color("3") ColorInfo = lipgloss.Color("4") ColorMuted = lipgloss.Color("8") ColorPrimary = lipgloss.Color("63") // Matches standard EnvCrypt color // Base Styles StyleSuccess = lipgloss.NewStyle().Foreground(ColorSuccess) StyleError = lipgloss.NewStyle().Foreground(ColorError) StyleWarn = lipgloss.NewStyle().Foreground(ColorWarn) StyleInfo = lipgloss.NewStyle().Foreground(ColorInfo) StyleMuted = lipgloss.NewStyle().Foreground(ColorMuted) StylePrimary = lipgloss.NewStyle().Foreground(ColorPrimary) // Icons IconCheck = StyleSuccess.Render("[✓]") IconCross = StyleError.Render("[x]") IconWarn = StyleWarn.Render("[!]") IconInfo = StyleInfo.Render(">") // Structural Styles HeaderStyle = lipgloss.NewStyle().Foreground(ColorMuted).Bold(true) BoxStyleWarn = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(ColorWarn). Padding(1). MarginTop(1) BoxStylePrimary = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(ColorPrimary). Padding(1). MarginTop(1) )
Functions ¶
func ConfirmDangerousAction ¶
func ConfirmOverwrite ¶
func IsInteractive ¶ added in v1.1.1
func IsInteractive() bool
func PrintEnvSummary ¶
func PrintServiceRoleDetail ¶
func PrintServiceRoleDetail(role *config.ServiceRole)
func PrintServiceRolePermissions ¶
func PrintServiceRolePermissions(perm *config.ServiceRolePermsResponse, repoPrincipal string)
func PrintServiceRoleSecret ¶
func PrintServiceRoleSecret(keyPair *config.ServiceRoleKeyPair)
func PromptWithDefault ¶
func RenderDiff ¶
func RenderDiff(diff cryptoutils.DiffingResult, oldMap, newMap map[string]string, showSecrets bool)
func RunActionWithSpinner ¶
func RunEnvPicker ¶
func RunProjectsTable ¶
func RunServiceRolesTable ¶
func RunServiceRolesTable(roles []config.ServiceRole) error
func VisibleLen ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.