Documentation
¶
Index ¶
- func BuildProviderCommands(kind string, deps cmdutil.Deps) []*cobra.Command
- func ClearConfirmCode(key string)
- func ConfirmPath(key string) string
- func GenerateConfirmCode(key string) (int, error)
- 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, out io.Writer, key string, ...) 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 ClearConfirmCode ¶
func ClearConfirmCode(key string)
ClearConfirmCode removes the temp file after successful deletion.
func ConfirmPath ¶
ConfirmPath returns the file path for a confirmation code.
func GenerateConfirmCode ¶
GenerateConfirmCode creates a random 6-digit code, writes it to a file, returns it.
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 string) error
RunCreateIssue creates a new issue.
func RunDeleteIssue ¶
func RunDeleteIssue(ctx context.Context, p tracker.Provider, out io.Writer, key string, confirm int) error
RunDeleteIssue deletes an issue after confirmation.
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.