comment

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(f *cmdutil.Factory) *cli.Command

NewCmd constructs the "comment" command with list and search subcommands for managing issue comments. Comment creation is handled by "json comment".

func RunList

func RunList(ctx context.Context, input RunListInput) error

RunList executes the comment list workflow: lists comments for the specified issue and writes the result to WriteTo.

func RunSearch added in v0.2.0

func RunSearch(ctx context.Context, input RunSearchInput) error

RunSearch executes the comment search workflow: searches comments matching the query and writes the result to WriteTo. Limit controls the maximum number of results; -1 means unbounded.

Types

type RunListInput

type RunListInput struct {
	Service driving.Service
	IssueID string
	Limit   int
	JSON    bool
	WriteTo io.Writer
}

RunListInput holds the parameters for the comment list operation, decoupled from CLI flag parsing so it can be tested directly.

type RunSearchInput added in v0.2.0

type RunSearchInput struct {
	Service     driving.Service
	Query       string
	Filter      driving.CommentFilterInput
	Limit       int
	JSON        bool
	WriteTo     io.Writer
	ColorScheme *iostreams.ColorScheme
}

RunSearchInput holds the parameters for the comment search operation, decoupled from CLI flag parsing so it can be tested directly.

Jump to

Keyboard shortcuts

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