Versions in this module Expand all Collapse all v0 v0.2.0 Aug 25, 2026 v0.1.1 Aug 22, 2026 v0.1.0 Aug 22, 2026 Changes in this version + const EnvBaseURL + const EnvOutput + const EnvProfile + const EnvToken + const ExitAuth + const ExitError + const ExitInvalid + const ExitNetwork + const ExitNotFound + const ExitOK + const ExitRateLimit + const ExitUsage + const FlagIdempotencyKey + const FlagJSON + const FlagQuery + const FlagQueryFile + const FlagSet + func AddGroups(root *cobra.Command, opts *Options) + func BuildBody(jsonSource string, sets []string, stdin io.Reader) ([]byte, error) + func Count() int + func ExitCode(err error) int + func GroupCommand(group Group, opts *Options) *cobra.Command + func OperationCommand(op Operation, opts *Options) *cobra.Command + func PrintError(w io.Writer, err error, format output.Format) + func ReadJSONSource(source string, stdin io.Reader) ([]byte, error) + func Register(op Operation) + func RegisterGroup(g Group) + func Usagef(format string, args ...any) error + type Answer struct + Body []byte + ContentType string + Header http.Header + Status int + func (a *Answer) JSON() bool + type Arg struct + Help string + Name string + type Group struct + Aliases []string + Name string + Short string + Tag string + func Groups() []Group + type Operation struct + Args []Arg + Binary bool + Body bool + BodyRequired bool + Deprecated string + Description string + Group string + ID string + Method string + Name string + Paged bool + Params []Param + Path string + QueryPath string + Summary string + func OperationsOf(group string) []Operation + func (op Operation) Use() string + type Options struct + All bool + BaseURL string + Err io.Writer + In io.Reader + NoRetry bool + Out io.Writer + OutputFmt string + Profile string + Started bool + Timeout time.Duration + Token string + UserAgent string + Verbose bool + func (o *Options) Bind(fs *pflag.FlagSet) + func (o *Options) Client() (*hosttracker.Client, error) + func (o *Options) Do(ctx context.Context, req Request) (*Answer, error) + func (o *Options) Emit(answer *Answer) error + func (o *Options) File() *config.File + func (o *Options) Format() output.Format + func (o *Options) Printer() output.Printer + func (o *Options) ProfileName() string + func (o *Options) Resolve() error + func (o *Options) ResolvedBaseURL() string + func (o *Options) ResolvedProfile() config.Profile + func (o *Options) ResolvedToken() string + func (o *Options) Streams() + type Param struct + Enum []string + Explode bool + Flag string + Help string + In string + Items string + Name string + Required bool + Type string + type Request struct + Body []byte + Header http.Header + Method string + Path string + Query url.Values + type UsageError struct + Err error + func (e *UsageError) Error() string + func (e *UsageError) Unwrap() error