comment

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: 8 Imported by: 0

Documentation

Overview

Package comment implements the `bitbottle snippet comment` 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 constructs the cobra command. The runF override lets tests inject their own runner without standing up a real backend.

func NewCmdDelete

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

NewCmdDelete constructs the cobra command. The runF override lets tests inject their own runner without standing up a real backend.

func NewCmdList

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

NewCmdList constructs the cobra command. The runF override lets tests inject their own runner without standing up a real backend.

func NewCmdSnippetComment

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

NewCmdSnippetComment builds the `snippet comment` parent command.

Types

type AddOptions

type AddOptions struct {
	Hostname  string
	Workspace string
	SnippetID string
	Body      string
}

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

Jump to

Keyboard shortcuts

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