cmd

package
v0.0.0-...-92eadc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2026 License: MIT Imports: 32 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(version, commit, date string)

Types

type ArgInfo

type ArgInfo struct {
	Name     string `json:"name"`
	Required bool   `json:"required"`
}

type CommandInfo

type CommandInfo struct {
	Command     string     `json:"command"`
	Description string     `json:"description"`
	Flags       []FlagInfo `json:"flags,omitempty"`
	Args        []ArgInfo  `json:"args,omitempty"`
}

type CreateTicketInput

type CreateTicketInput struct {
	Subject        string             `json:"subject" jsonschema:"Ticket subject (required)"`
	Comment        string             `json:"comment" jsonschema:"Ticket body/description (required)"`
	Priority       string             `json:"priority,omitempty" jsonschema:"Priority: urgent, high, normal, low"`
	Type           string             `json:"type,omitempty" jsonschema:"Type: problem, incident, question, task"`
	Status         string             `json:"status,omitempty" jsonschema:"Status: new, open, pending, hold, solved, closed"`
	AssigneeID     int64              `json:"assignee_id,omitempty" jsonschema:"Assignee user ID"`
	GroupID        int64              `json:"group_id,omitempty" jsonschema:"Group ID"`
	Tags           []string           `json:"tags,omitempty" jsonschema:"Tags to add to the ticket"`
	CustomFields   []CustomFieldInput `json:"custom_fields,omitempty" jsonschema:"Custom fields"`
	RequesterEmail string             `json:"requester_email,omitempty" jsonschema:"Requester email (for on-behalf-of creation)"`
	RequesterName  string             `json:"requester_name,omitempty" jsonschema:"Requester display name"`
}

type CustomFieldInput

type CustomFieldInput struct {
	ID    int64       `json:"id" jsonschema:"Custom field ID"`
	Value interface{} `json:"value" jsonschema:"Custom field value"`
}

type DeleteTicketInput

type DeleteTicketInput struct {
	ID int64 `json:"id" jsonschema:"Zendesk ticket ID (required)"`
}

type FlagInfo

type FlagInfo struct {
	Name        string `json:"name"`
	Shorthand   string `json:"shorthand,omitempty"`
	Type        string `json:"type"`
	Default     string `json:"default,omitempty"`
	Description string `json:"description"`
	Required    bool   `json:"required,omitempty"`
}

type ListArticlesInput

type ListArticlesInput struct {
	Limit     int    `json:"limit,omitempty" jsonschema:"Max articles to return (default 25, max 100)"`
	Cursor    string `json:"cursor,omitempty" jsonschema:"Pagination cursor"`
	SortBy    string `json:"sort_by,omitempty" jsonschema:"Sort: title, created_at, updated_at"`
	SortOrder string `json:"sort_order,omitempty" jsonschema:"Sort order: asc or desc (default: desc)"`
}

type ListCommentsInput

type ListCommentsInput struct {
	TicketID  int64  `json:"ticket_id" jsonschema:"Zendesk ticket ID (required)"`
	Limit     int    `json:"limit,omitempty" jsonschema:"Max comments to return (default 100)"`
	Cursor    string `json:"cursor,omitempty" jsonschema:"Pagination cursor"`
	SortOrder string `json:"sort_order,omitempty" jsonschema:"Sort order: asc or desc (default: asc)"`
}

type ListTicketsInput

type ListTicketsInput struct {
	Status     string `json:"status,omitempty" jsonschema:"Filter by status (new/open/pending/hold/solved/closed)"`
	AssigneeID int64  `json:"assignee_id,omitempty" jsonschema:"Filter by assignee user ID"`
	GroupID    int64  `json:"group_id,omitempty" jsonschema:"Filter by group ID"`
	Limit      int    `json:"limit,omitempty" jsonschema:"Max tickets to return (default 20, max 100)"`
	Cursor     string `json:"cursor,omitempty" jsonschema:"Pagination cursor for next page"`
	Sort       string `json:"sort,omitempty" jsonschema:"Sort field (default: updated_at)"`
	SortOrder  string `json:"sort_order,omitempty" jsonschema:"Sort order: asc or desc (default: desc)"`
}

type SearchArticlesInput

type SearchArticlesInput struct {
	Query  string `json:"query" jsonschema:"Search query for Help Center articles (required)"`
	Limit  int    `json:"limit,omitempty" jsonschema:"Max results to return (default 25, max 100)"`
	Cursor string `json:"cursor,omitempty" jsonschema:"Pagination cursor"`
}

type SearchTicketsInput

type SearchTicketsInput struct {
	Query     string `` /* 149-byte string literal not displayed */
	Limit     int    `json:"limit,omitempty" jsonschema:"Max results to return (default 20, max 100)"`
	Cursor    string `json:"cursor,omitempty" jsonschema:"Pagination cursor for next page"`
	SortBy    string `json:"sort_by,omitempty" jsonschema:"Sort field"`
	SortOrder string `json:"sort_order,omitempty" jsonschema:"Sort order: asc or desc (default: desc)"`
}

type ShowArticleInput

type ShowArticleInput struct {
	ID int64 `json:"id" jsonschema:"Help Center article ID (required)"`
}

type ShowTicketInput

type ShowTicketInput struct {
	ID int64 `json:"id" jsonschema:"Zendesk ticket ID (required)"`
}

type UpdateTicketInput

type UpdateTicketInput struct {
	ID           int64              `json:"id" jsonschema:"Zendesk ticket ID (required)"`
	Subject      string             `json:"subject,omitempty" jsonschema:"Update ticket subject"`
	Comment      string             `json:"comment,omitempty" jsonschema:"Add a comment to the ticket"`
	Public       *bool              `json:"public,omitempty" jsonschema:"Whether comment is public (default true). Set to false for internal notes"`
	Status       string             `json:"status,omitempty" jsonschema:"Set status: new, open, pending, hold, solved, closed"`
	Priority     string             `json:"priority,omitempty" jsonschema:"Set priority: urgent, high, normal, low"`
	AssigneeID   *int64             `json:"assignee_id,omitempty" jsonschema:"Assignee user ID (send 0 to unassign)"`
	GroupID      *int64             `json:"group_id,omitempty" jsonschema:"Group ID (send 0 to unset)"`
	Tags         []string           `json:"tags,omitempty" jsonschema:"Replace all tags"`
	AddTags      []string           `json:"add_tags,omitempty" jsonschema:"Tags to add"`
	RemoveTags   []string           `json:"remove_tags,omitempty" jsonschema:"Tags to remove"`
	CustomFields []CustomFieldInput `json:"custom_fields,omitempty" jsonschema:"Custom fields"`
	SafeUpdate   bool               `json:"safe_update,omitempty" jsonschema:"Enable conflict detection"`
	CC           []string           `json:"cc,omitempty" jsonschema:"Add CCs to the comment (emails or user IDs). Ignored for internal notes"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL