Documentation
¶
Index ¶
- func BuildProviderCommands(kind string, deps cmdutil.Deps) []*cobra.Command
- func PrintStatusesTable(out io.Writer, statuses []tracker.Status) error
- func RunAddComment(ctx context.Context, p tracker.Provider, out io.Writer, key, body string) error
- func RunCreateIssue(ctx context.Context, p tracker.Provider, out io.Writer, ...) error
- func RunDeleteIssue(ctx context.Context, p tracker.Provider, in io.Reader, out io.Writer, ...) error
- func RunEditIssue(ctx context.Context, p tracker.Provider, out io.Writer, key string, ...) error
- func RunGetIssue(ctx context.Context, p tracker.Provider, out io.Writer, key string) error
- func RunListComments(ctx context.Context, p tracker.Provider, out io.Writer, key string) error
- func RunListIssues(ctx context.Context, p tracker.Provider, out io.Writer, project string, ...) error
- func RunListStatuses(ctx context.Context, p tracker.Provider, out io.Writer, key string, table bool) error
- func RunSetStatus(ctx context.Context, p tracker.Provider, out io.Writer, key, status string) error
- func RunStartIssue(ctx context.Context, p tracker.Provider, out io.Writer, key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildProviderCommands ¶
BuildProviderCommands returns the "issues" and "issue" cobra commands that use the given provider kind for resolution.
func PrintStatusesTable ¶
PrintStatusesTable prints statuses as a table.
func RunAddComment ¶
RunAddComment adds a comment to an issue.
func RunCreateIssue ¶
func RunCreateIssue(ctx context.Context, p tracker.Provider, out io.Writer, project, typ, title, description, parent string) error
RunCreateIssue creates a new issue. When parent is non-empty, the issue is created as a subtask of the given parent key (ClickUp).
func RunDeleteIssue ¶
func RunDeleteIssue(ctx context.Context, p tracker.Provider, in io.Reader, out io.Writer, key string, yes bool) error
RunDeleteIssue deletes an issue. When yes is false, the user is prompted for confirmation on in. Empty input (bare Enter) is treated as "No" to match the y/N default.
func RunEditIssue ¶
func RunEditIssue(ctx context.Context, p tracker.Provider, out io.Writer, key string, opts tracker.EditOptions) error
RunEditIssue edits an issue's title and/or description.
func RunGetIssue ¶
RunGetIssue retrieves and prints a single issue.
func RunListComments ¶
RunListComments lists comments on an issue.
func RunListIssues ¶
func RunListIssues(ctx context.Context, p tracker.Provider, out io.Writer, project string, all, table bool) error
RunListIssues lists issues for a project.
func RunListStatuses ¶
func RunListStatuses(ctx context.Context, p tracker.Provider, out io.Writer, key string, table bool) error
RunListStatuses lists available statuses for an issue.
func RunSetStatus ¶
RunSetStatus sets an issue's status.
Types ¶
This section is empty.