Versions in this module Expand all Collapse all v0 v0.2.0 Apr 24, 2023 Changes in this version type CLI + func (c *CLI) ItemsPush(params *ItemsPushParameters) error + type ItemsPushParameters struct + Args []string + FlagWrite *flags.Bool v0.1.0 Apr 23, 2023 Changes in this version + var ErrCreateWithID = errors.New("cannot set id when creating a new item") + var ErrIDRequired = errors.New("id must be specified") + var ErrIDsRequired = errors.New("ids must be specified") + var ErrIDsWithAll = errors.New("cannot specify ids when --all is specified") + var ErrWriteWithoutFile = errors.New("cannot specify --write without --file") + func Configure(params *ConfigureParameters) error + type CLI struct + func New(cfg *Config) (*CLI, error) + func (c *CLI) ItemsCreate(params *ItemsCreateParameters) error + func (c *CLI) ItemsDelete(params *ItemsDeleteParameters) error + func (c *CLI) ItemsGet(params *ItemsGetParameters) error + func (c *CLI) ItemsList(params *ItemsListParameters) error + func (c *CLI) ItemsNew(params *ItemsNewParameters) error + func (c *CLI) ItemsPull(params *ItemsPullParameters) error + func (c *CLI) ItemsSearch(params *ItemsSearchParameters) error + func (c *CLI) ItemsUpdate(params *ItemsUpdateParameters) error + type Config struct + Command *cobra.Command + ErrWriter io.Writer + FlagColumns *flags.StringSlice + FlagFormat *flags.String + Writer io.Writer + type ConfigureParameters struct + Command *cobra.Command + FlagAccessToken *flags.String + FlagFormat *flags.String + Writer io.Writer + type ItemsCreateParameters struct + FlagBody *flags.String + FlagFile *flags.String + FlagPrivate *flags.Bool + FlagTags *flags.StringSlice + FlagTitle *flags.String + FlagTweet *flags.Bool + FlagWrite *flags.Bool + type ItemsDeleteParameters struct + Args []string + type ItemsGetParameters struct + Args []string + type ItemsListParameters struct + FlagPage *flags.Int + FlagPerPage *flags.Int + type ItemsNewParameters struct + Args []string + FlagPrivate *flags.Bool + FlagTags *flags.StringSlice + FlagTitle *flags.String + type ItemsPullParameters struct + Args []string + FlagAll *flags.Bool + FlagOut *flags.String + type ItemsSearchParameters struct + FlagPage *flags.Int + FlagPerPage *flags.Int + FlagQuery *flags.String + type ItemsUpdateParameters struct + Args []string + FlagBody *flags.String + FlagFile *flags.String + FlagPrivate *flags.Bool + FlagTags *flags.StringSlice + FlagTitle *flags.String + FlagWrite *flags.Bool