Documentation
¶
Index ¶
- func AddCustomFieldsFlag(cmds ...*cobra.Command)
- func AddListFlags(cmd *cobra.Command)
- func CheckErr(httpResp *http.Response, body []byte) error
- func Ctx() context.Context
- func IntPtr(i int) *int
- func NewClient() (*client.ClientWithResponses, config.Config, error)
- func NewClientWithAuth() (*client.ClientWithResponses, config.Config, error)
- func ParseCustomFields(cmd *cobra.Command) (*map[string]client.CustomFieldModel, error)
- func StringPtr(s string) *string
- func StringSlicePtr(s string) *[]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCustomFieldsFlag ¶
AddCustomFieldsFlag registers the standard --custom-fields-json flag.
func AddListFlags ¶
AddListFlags adds common pagination/sorting flags to a command.
func NewClient ¶
func NewClient() (*client.ClientWithResponses, config.Config, error)
NewClient creates an API client from current config, validating that token is set.
func NewClientWithAuth ¶
func NewClientWithAuth() (*client.ClientWithResponses, config.Config, error)
NewClientWithAuth creates an API client and requires a token.
func ParseCustomFields ¶
func StringSlicePtr ¶
StringSlicePtr returns a pointer to a string slice parsed from comma-separated input, or nil if empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.