annotation

package
v1.135.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package annotation is the `code-insights annotation` subcommand group.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAdd

func NewCmdAdd(f *factory.Factory, runF func(*AddOptions) error) *cobra.Command

NewCmdAdd builds the `code-insights annotation add` cobra command.

func NewCmdAnnotation

func NewCmdAnnotation(f *factory.Factory) *cobra.Command

NewCmdAnnotation builds the `code-insights annotation` command tree.

func NewCmdDelete

func NewCmdDelete(f *factory.Factory, runF func(*DeleteOptions) error) *cobra.Command

NewCmdDelete builds the `code-insights annotation delete` cobra command.

func NewCmdList

func NewCmdList(f *factory.Factory, runF func(*ListOptions) error) *cobra.Command

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`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL