{"modulePath":"github.com/stainless-api/stainless-api-cli","version":"v0.1.0-alpha.89","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package console\n\n## Functions\n\n```go\nfunc Confirm(cmd *cli.Command, flagName, title, description string, defaultValue bool) (bool, error)\n```\n\n```go\nfunc Field(field huh.Field) error\n```\n\n```go\nfunc GetFormKeyMap() *huh.KeyMap\n```\nGetFormKeyMap returns the standard huh keymap used across all forms\n\n```go\nfunc GetFormTheme(indent int) *huh.Theme\n```\nGetFormTheme returns the standard huh theme used across all forms\n\n```go\nfunc Hyperlink(url, text string) string\n```\n\n```go\nfunc IsInteractive() bool\n```\nIsInteractive returns true if stderr is a terminal (TTY). Use this to decide whether to show interactive prompts.\n\n```go\nfunc NewProgram(model tea.Model, opts ...tea.ProgramOption) *tea.Program\n```\nNewProgram wraps tea.NewProgram with better handling for tty environments\n\n```go\nfunc SError(indent int, format string, args ...any) string\n```\n\n```go\nfunc SHeader(format string, args ...any) string\n```\n\n```go\nfunc SInfo(indent int, format string, args ...any) string\n```\n\n```go\nfunc SProgress(indent int, format string, args ...any) string\n```\n\n```go\nfunc SProperty(indent int, key, msg string) string\n```\n\n```go\nfunc SSuccess(indent int, format string, args ...any) string\n```\n\n```go\nfunc SWarn(indent int, format string, args ...any) string\n```\n\n```go\nfunc Spacer()\n```\n\n```go\nfunc Spinner(message string, operation func() error) error\n```\nSpinner runs the given operation with a spinner and message\n\n## Types\n\n```go\ntype Group struct {\n\t// contains filtered or unexported fields\n}\n```\nGroup represents a nested logging group\n\n```go\nfunc Error(format string, args ...any) Group\n```\n\n```go\nfunc Header(format string, args ...any) Group\n```\n\n```go\nfunc Info(format string, args ...any) Group\n```\n\n```go\nfunc NewGroup(silent bool) Group\n```\n\n```go\nfunc Progress(format string, args ...any) Group\n```\n\n```go\nfunc Property(key, msg string) Group\n```\n\n```go\nfunc Success(format string, args ...any) Group\n```\n\n```go\nfunc Warn(format string, args ...any) Group\n```\n\n```go\nfunc (g Group) Confirm(cmd *cli.Command, flagName, title, description string, defaultValue bool) (bool, Group, error)\n```\n\n```go\nfunc (g Group) Error(format string, args ...any) Group\n```\n\n```go\nfunc (g Group) Field(field huh.Field) error\n```\n\n```go\nfunc (g Group) Info(format string, args ...any) Group\n```\n\n```go\nfunc (g Group) Progress(format string, args ...any) Group\n```\n\n```go\nfunc (g Group) Property(key, msg string) Group\n```\n\n```go\nfunc (g Group) Spinner(message string, operation func() error) error\n```\nSpinner runs the given operation with a spinner and message, respecting the group's indent\n\n```go\nfunc (g Group) Success(format string, args ...any) Group\n```\n\n```go\nfunc (g Group) Warn(format string, args ...any) Group\n```\n\n","path":"github.com/stainless-api/stainless-api-cli/pkg/console","name":"console","synopsis":"","isRedistributable":true}
