{"modulePath":"github.com/render-oss/cli","version":"v1.1.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\n## Constants\n\n```go\nconst ConfirmFlag = \"confirm\"\n```\n\n```go\nconst (\n\tEnumType = \"enum\"\n)\n```\n\n```go\nconst (\n\tTimeType = \"time\"\n)\n```\n\n## Variables\n\n```go\nvar ErrActionNotAllowed = errors.New(\"you are not allowed to take this action\")\n```\n\n```go\nvar ErrTokenExpired = errors.New(\"your token is expired; run `render login` to get a new one\")\n```\n\n```go\nvar RFC3339RegexString = []string{\n\t`\\d`, `\\d`, `\\d`, `\\d`, `-`, `\\d`, `\\d`, `-`, `\\d`, `\\d`,\n\t`T`, `\\d`, `\\d`, `:`, `\\d`, `\\d`, `:`, `\\d`, `\\d`,\n}\n```\n\n## Functions\n\n```go\nfunc AddErrToStack(ctx context.Context, cmd *cobra.Command, err error) tea.Cmd\n```\n\n```go\nfunc AddToStack[T any](stack *tui.StackModel, cmd *cobra.Command, breadcrumb string, in T, m tea.Model) tea.Cmd\n```\n\n```go\nfunc AddToStackFunc[T any](ctx context.Context, cmd *cobra.Command, breadcrumb string, in T, m tea.Model) tea.Cmd\n```\n\n```go\nfunc CommandName(cmd *cobra.Command, v any) (string, error)\n```\n\n```go\nfunc DefaultFormatNonInteractive(cmd *cobra.Command)\n```\n\n```go\nfunc Fatal(cmd *cobra.Command, err error)\n```\n\n```go\nfunc GetConfirmFromContext(ctx context.Context) bool\n```\n\n```go\nfunc InputToString(v any) (string, error)\n```\n\n```go\nfunc LoadCmd[T any, D any](ctx context.Context, loadData func(context.Context, T) (D, error), in T) tui.TypedCmd[D]\n```\n\n```go\nfunc NewStringFormValue(s string) *stringFormValue\n```\n\n```go\nfunc NewStringSliceFormValue(s string) *stringSliceFormValue\n```\n\n```go\nfunc NonInteractive[T any](cmd *cobra.Command, loadData LoadDataFunc[T], formatText FormatTextFunc[T]) (bool, error)\n```\n\n```go\nfunc NonInteractiveWithConfirm[T any](cmd *cobra.Command, loadData LoadDataFunc[T], formatText FormatTextFunc[T], confirmMessageFunc ConfirmFunc) (bool, error)\n```\n\n```go\nfunc PaginatedLoadCmd[T any, D any](ctx context.Context, loadData func(context.Context, T, client.Cursor) (client.Cursor, D, error), in T) tui.TypedCmd[D]\n```\n\n```go\nfunc ParseCommand(cmd *cobra.Command, args []string, v any) error\n```\n\n```go\nfunc ParseCommandInteractiveOnly(cmd *cobra.Command, args []string, v any) error\n```\n\n```go\nfunc PrintData[T any](cmd *cobra.Command, data T, formatText FormatTextFunc[T]) (bool, error)\n```\n\n```go\nfunc Println(cmd *cobra.Command, format string, a ...any)\n```\n\n```go\nfunc RunProgram(name string, args ...string) error\n```\n\n```go\nfunc SetConfirmInContext(ctx context.Context, confirm bool) context.Context\n```\n\n```go\nfunc SetFormatInContext(ctx context.Context, output *Output) context.Context\n```\n\n```go\nfunc StructFromFormValues(formValues FormValues, v any) error\n```\n\n```go\nfunc TimeSuggestion(str string) []string\n```\n\n```go\nfunc WrapInConfirm[D any](cmd tui.TypedCmd[D], msgFunc func() (string, error)) tui.TypedCmd[D]\n```\n\n## Types\n\n```go\ntype CTXConfirmKey struct{}\n```\n\n```go\ntype CTXConfirmValue struct {\n\tConfirm bool\n}\n```\n\n```go\ntype CTXOutputKey struct{}\n```\n\n```go\ntype CTXOutputValue struct {\n\tOutput *Output\n}\n```\n\n```go\ntype CobraEnum struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewEnumInput(values []string, isMultiSelect bool) *CobraEnum\n```\n\n```go\nfunc (e *CobraEnum) IsMultiSelect() bool\n```\n\n```go\nfunc (e *CobraEnum) SelectedValues() []string\n```\n\n```go\nfunc (e *CobraEnum) Set(v string) error\n```\n\n```go\nfunc (e *CobraEnum) String() string\n```\n\n```go\nfunc (e *CobraEnum) Type() string\n```\n\n```go\nfunc (e *CobraEnum) Values() []string\n```\n\n```go\ntype CobraTime struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTimeInput() *CobraTime\n```\n\n```go\nfunc (e *CobraTime) Get() *TimeOrRelative\n```\n\n```go\nfunc (e *CobraTime) Set(v string) error\n```\n\n```go\nfunc (e *CobraTime) String() string\n```\n\n```go\nfunc (e *CobraTime) Type() string\n```\n\n```go\ntype ConfirmFunc func() (string, error)\n```\n\n```go\ntype FormValue interface {\n\tString() string\n}\n```\n\n```go\ntype FormValues map[string]FormValue\n```\n\n```go\nfunc FormValuesFromStruct(v any) FormValues\n```\n\n```go\nfunc HuhFormFields(cmd *cobra.Command, v any) ([]huh.Field, FormValues)\n```\n\n```go\ntype FormatTextFunc[T any] func(T) string\n```\n\n```go\ntype InteractiveFunc[T any, D any] func(context.Context, func(T) tui.TypedCmd[D], T) (tea.Model, error)\n```\n\n```go\ntype LoadDataFunc[T any] func() (T, error)\n```\n\n```go\ntype Output string\n```\n\n```go\nconst (\n\tInteractive Output = \"interactive\"\n\tJSON        Output = \"json\"\n\tYAML        Output = \"yaml\"\n\tTEXT        Output = \"text\"\n)\n```\n\n```go\nfunc GetFormatFromContext(ctx context.Context) *Output\n```\n\n```go\nfunc StringToOutput(s string) (Output, error)\n```\n\n```go\nfunc (o *Output) Interactive() bool\n```\n\n```go\ntype RequireConfirm[T any] struct {\n\tConfirm     bool\n\tMessageFunc func(ctx context.Context, args T) (string, error)\n}\n```\n\n```go\ntype TextTable interface {\n\tHeader() []string\n\tRow() []string\n}\n```\n\n```go\ntype TimeOrRelative struct {\n\tT        *time.Time\n\tRelative *string\n}\n```\n\n```go\nfunc ParseTime(now time.Time, str *string) (*TimeOrRelative, error)\n```\n\n```go\nfunc (t *TimeOrRelative) String() string\n```\n\n```go\ntype WrapOptions[T any] struct {\n\tRequireConfirm RequireConfirm[T]\n}\n```\n\n```go\ntype WrappedFunc[T any] func(ctx context.Context, args T) tea.Cmd\n```\n\n","path":"github.com/render-oss/cli/pkg/command","name":"command","synopsis":"","isRedistributable":true}
