Versions in this module Expand all Collapse all v0 v0.8.0 Oct 28, 2026 v0.7.0 Oct 23, 2026 v0.6.0 Oct 22, 2026 v0.5.0 Oct 14, 2026 v0.4.1 Oct 7, 2026 v0.4.0 Oct 7, 2026 v0.3.0 Oct 2, 2026 Changes in this version + func SkipVersionCheck(opts *auth.ResolveClientOptions) + func UuidArg(id *uuid.UUID) cobra.PositionalArgs + type ExitError struct + Code int + Err error + func (e ExitError) Error() string + func (e ExitError) Unwrap() error type Flag + Shorthand string + func (flag Flag[T]) WithShorthand(shorthand string) Flag[T] + type KindCommand string + func KindCommandOf(name string) KindCommand + func (command KindCommand) Aliases() []string + func (command KindCommand) Long(short string) string type ListFlags + func (f *ListFlags) RunSeq(cmd *cobra.Command, ...) error + type ListResult struct + Defaulted bool + Limit int + Listed int + Total *int + func (r ListResult) CutShortNote() string type OutputFlag + func (f *OutputFlag) RegisterForItem(flags *pflag.FlagSet) type OutputFormat + const OutputMarkdown + func (format OutputFormat) WriteItem(w io.Writer, item jsontext.Value) error + func (format OutputFormat) WriteList(w io.Writer, items iter.Seq2[jsontext.Value, error]) error + type ResolveClientOptionsModifier func(*auth.ResolveClientOptions) + func WithSettingSources(sources setting.Sources) ResolveClientOptionsModifier + type ShowFlag struct + Format OutputFormat + func (f *ShowFlag) Json() bool + func (f *ShowFlag) Register(flags *pflag.FlagSet) + func (f *ShowFlag) Set(value string) error + func (f *ShowFlag) Show(w io.Writer, markdownTemplate *template.Template, data any) error + func (f *ShowFlag) String() string + func (f *ShowFlag) Type() string + type UuidFlag uuid.UUID + func (f *UuidFlag) Set(value string) error + func (f *UuidFlag) String() string + func (f *UuidFlag) Type() string v0.2.1 Sep 29, 2026 v0.2.0 Sep 28, 2026 Changes in this version + func CutShortNote(limit, listed int, total *int, defaulted bool) string + func First[T any](items iter.Seq2[T, error], n int) iter.Seq2[T, error] + func ListWorkspace(ctx context.Context) (*string, error) + func ResolveClientOptions() auth.ResolveClientOptions + func WriteList(w io.Writer, format OutputFormat, items iter.Seq2[jsontext.Value, error]) error + type LimitFlag int + func (f *LimitFlag) Set(value string) error + func (f *LimitFlag) String() string + func (f *LimitFlag) Type() string + type ListFlags struct + func (f *ListFlags) Register(flags *pflag.FlagSet) + func (f *ListFlags) Run(cmd *cobra.Command, ...) error + type OutputFlag struct + Format OutputFormat + func (f *OutputFlag) Register(flags *pflag.FlagSet) + func (f *OutputFlag) Set(value string) error + func (f *OutputFlag) String() string + func (f *OutputFlag) Type() string + type OutputFormat string + const OutputJson + const OutputNdjson v0.1.0 Sep 21, 2026 Changes in this version + const DefaultTimeout + var EndpointFlag = NewFlagForSetting[string]("endpoint", setting.Endpoint) + var ProfileFlag = NewFlagForSetting[string]("profile", setting.Profile) + var SkipVersionCheckFlag = NewFlagForSetting[bool]("skip-version-check", setting.SkipVersionCheck) + var Version = devVersion + var WorkspaceFlag = NewFlagForSetting[string]("workspace", setting.Workspace) + func ResolveClient(ctx context.Context) (client.Client, error) + func ResolveSession(ctx context.Context, options ...ResolveSessionOption) (auth.Session, error) + func RunWith(ctx context.Context, timeout time.Duration, action func(context.Context) error) error + func SettingSources() setting.Sources + type Flag struct + Help string + Name FlagName + SettingEnvKey string + Value T + func NewFlagForSetting[T string | bool](name FlagName, s setting.Setting) Flag[T] + func (flag *Flag[T]) AsSource() setting.FrontendSource + func (flag *Flag[T]) AsSourceUnless(predicate func(T) bool) setting.FrontendSource + func (flag *Flag[T]) Register(flags *pflag.FlagSet) (flagName string) + type FlagName string + func (n FlagName) SourceDescription() string + func (n FlagName) String() string + type ResolveSessionOption func(*auth.ResolveSessionOptions)