Documentation
¶
Index ¶
- Variables
- func BrandHeader() string
- func BuildStartTimeOptions() []huh.Option[string]
- func BuildTimezoneOptions(detected string) []huh.Option[string]
- func ClearAndBrand()
- func ClearScreen()
- func EnterAltScreen()
- func ExitAltScreen()
- func RenderStatusTable(instances []config.Instance) string
- func RunWithSpinner(title string, action func() error) error
- func RunWithSpinnerFullscreen(title string, action func() error) error
- func TokFreshTheme() *huh.Theme
- type WizardResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SuccessStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("42")) ErrorStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("196")) MutedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("245")) BoldStyle = lipgloss.NewStyle().Bold(true) HeaderStyle = lipgloss.NewStyle(). Foreground(lipgloss.AdaptiveColor{Light: "#2563EB", Dark: "#60A5FA"}). Bold(true) HeaderDividerStyle = lipgloss.NewStyle(). Foreground(lipgloss.AdaptiveColor{Light: "238", Dark: "238"}) )
Functions ¶
func BrandHeader ¶
func BrandHeader() string
func BuildStartTimeOptions ¶
func ClearAndBrand ¶
func ClearAndBrand()
func ClearScreen ¶
func ClearScreen()
func EnterAltScreen ¶
func EnterAltScreen()
func ExitAltScreen ¶
func ExitAltScreen()
func RenderStatusTable ¶
func RunWithSpinner ¶
func TokFreshTheme ¶
Types ¶
type WizardResult ¶
type WizardResult struct {
WorkerName string
AuthCode string
StartTime string
Timezone string
NotificationType string
NotificationWebhook string
NotifyOnFailureOnly bool
CloudflareAuthMode string
CloudflareAPIToken string
}
func RunSetupWizard ¶
func RunSetupWizard(detectedTimezone, authURL string) (*WizardResult, error)
func (*WizardResult) BuildNotificationConfig ¶
func (r *WizardResult) BuildNotificationConfig() string
Click to show internal directories.
Click to hide internal directories.