Documentation
¶
Overview ¶
Package comment implements the `bitbottle snippet comment` subcommand group.
Index ¶
- func NewCmdAdd(f *factory.Factory, runF ...func(*AddOptions) error) *cobra.Command
- func NewCmdDelete(f *factory.Factory, runF ...func(*DeleteOptions) error) *cobra.Command
- func NewCmdList(f *factory.Factory, runF ...func(*ListOptions) error) *cobra.Command
- func NewCmdSnippetComment(f *factory.Factory) *cobra.Command
- type AddOptions
- type DeleteOptions
- type ListOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdAdd ¶
NewCmdAdd constructs the cobra command. The runF override lets tests inject their own runner without standing up a real backend.
func NewCmdDelete ¶
NewCmdDelete constructs the cobra command. The runF override lets tests inject their own runner without standing up a real backend.
func NewCmdList ¶
NewCmdList constructs the cobra command. The runF override lets tests inject their own runner without standing up a real backend.
Types ¶
type AddOptions ¶
AddOptions carries parsed flags for `snippet comment add`.
type DeleteOptions ¶
type DeleteOptions struct {
Hostname string
Workspace string
SnippetID string
CommentID int
Confirm bool
}
DeleteOptions carries parsed flags for `snippet comment delete`.
type ListOptions ¶
type ListOptions struct {
Output format.OutputConfig
Hostname string
Workspace string
SnippetID string
Limit int
}
ListOptions carries parsed flags for `snippet comment list`.