Documentation
¶
Overview ¶
Package issue implements the `bitbottle issue` command group. Issues are a Bitbucket Cloud feature gated by the IssueClient optional interface; invocations against Server/DC surface a typed ErrUnsupportedOnHost.
Index ¶
- func IssueStateColor(ios *iostreams.IOStreams) func(string) string
- func NewCmdIssue(f *factory.Factory) *cobra.Command
- func NewCmdIssueAssign(f *factory.Factory) *cobra.Command
- func NewCmdIssueAttachment(f *factory.Factory) *cobra.Command
- func NewCmdIssueAttachmentDelete(f *factory.Factory) *cobra.Command
- func NewCmdIssueAttachmentList(f *factory.Factory) *cobra.Command
- func NewCmdIssueClose(f *factory.Factory) *cobra.Command
- func NewCmdIssueComment(f *factory.Factory) *cobra.Command
- func NewCmdIssueCommentAdd(f *factory.Factory) *cobra.Command
- func NewCmdIssueCommentDelete(f *factory.Factory) *cobra.Command
- func NewCmdIssueCommentEdit(f *factory.Factory) *cobra.Command
- func NewCmdIssueCommentList(f *factory.Factory) *cobra.Command
- func NewCmdIssueCreate(f *factory.Factory) *cobra.Command
- func NewCmdIssueEdit(f *factory.Factory) *cobra.Command
- func NewCmdIssueList(f *factory.Factory) *cobra.Command
- func NewCmdIssueReopen(f *factory.Factory) *cobra.Command
- func NewCmdIssueUnvote(f *factory.Factory) *cobra.Command
- func NewCmdIssueUnwatch(f *factory.Factory) *cobra.Command
- func NewCmdIssueView(f *factory.Factory) *cobra.Command
- func NewCmdIssueVote(f *factory.Factory) *cobra.Command
- func NewCmdIssueWatch(f *factory.Factory) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IssueStateColor ¶
IssueStateColor maps Bitbucket Cloud issue states to colours. Active (open / new) renders green; closed states (resolved / closed) magenta; "won't fix" / "invalid" / "duplicate" red — terminal and negative; "on hold" yellow because it's neither active nor done.
Exported so a future `issue view` formatter (or external tooling) can share the mapping. Unknown states pass through uncoloured.
func NewCmdIssueAttachment ¶ added in v1.100.0
NewCmdIssueAttachment returns the `issue attachment` subcommand group.
func NewCmdIssueAttachmentDelete ¶ added in v1.100.0
NewCmdIssueAttachmentDelete builds `issue attachment delete PROJECT/REPO ISSUE_ID FILENAME`.
func NewCmdIssueAttachmentList ¶ added in v1.100.0
NewCmdIssueAttachmentList builds `issue attachment list PROJECT/REPO ISSUE_ID`.
func NewCmdIssueComment ¶ added in v1.23.0
NewCmdIssueComment returns the `issue comment` subcommand group.
func NewCmdIssueCommentAdd ¶ added in v1.23.0
func NewCmdIssueCommentDelete ¶ added in v1.23.0
func NewCmdIssueCommentEdit ¶ added in v1.23.0
func NewCmdIssueCommentList ¶ added in v1.23.0
func NewCmdIssueUnvote ¶ added in v1.100.0
NewCmdIssueUnvote builds `issue unvote PROJECT/REPO ISSUE_ID`.
func NewCmdIssueUnwatch ¶ added in v1.100.0
NewCmdIssueUnwatch builds `issue unwatch PROJECT/REPO ISSUE_ID`.
func NewCmdIssueVote ¶ added in v1.100.0
NewCmdIssueVote builds `issue vote PROJECT/REPO ISSUE_ID`.
func NewCmdIssueWatch ¶ added in v1.100.0
NewCmdIssueWatch builds `issue watch PROJECT/REPO ISSUE_ID`.
Types ¶
This section is empty.