Documentation
¶
Overview ¶
Package annotation is the `code-insights annotation` subcommand group.
Index ¶
- func NewCmdAdd(f *factory.Factory, runF func(*AddOptions) error) *cobra.Command
- func NewCmdAnnotation(f *factory.Factory) *cobra.Command
- func NewCmdDelete(f *factory.Factory, runF func(*DeleteOptions) error) *cobra.Command
- func NewCmdList(f *factory.Factory, runF func(*ListOptions) error) *cobra.Command
- type AddOptions
- type DeleteOptions
- type ListOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdAnnotation ¶
NewCmdAnnotation builds the `code-insights annotation` command tree.
func NewCmdDelete ¶
NewCmdDelete builds the `code-insights annotation delete` cobra command.
func NewCmdList ¶
NewCmdList builds the `code-insights annotation list` cobra command.
Types ¶
type AddOptions ¶
type AddOptions struct {
Hostname string
FromJSON string // path or "-" for stdin; mutually exclusive with single flags
// Single-annotation flags
Path string
Line int
Severity string
Type string
Message string
ExternalID string
Link string
// Args[0]=PROJECT/REPO Args[1]=HASH Args[2]=KEY
Args []string
}
AddOptions holds parsed flags for `code-insights annotation add`.
type DeleteOptions ¶
type DeleteOptions struct {
Hostname string
// Args[0]=PROJECT/REPO Args[1]=HASH Args[2]=KEY
Args []string
}
DeleteOptions holds parsed flags for `code-insights annotation delete`.
type ListOptions ¶
type ListOptions struct {
Output format.OutputConfig
Hostname string
// Args[0]=PROJECT/REPO Args[1]=HASH Args[2]=KEY
Args []string
}
ListOptions holds parsed flags for `code-insights annotation list`.
Click to show internal directories.
Click to hide internal directories.