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 NewCmdIssueClose(f *factory.Factory) *cobra.Command
- func NewCmdIssueCreate(f *factory.Factory) *cobra.Command
- func NewCmdIssueList(f *factory.Factory) *cobra.Command
- func NewCmdIssueView(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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.