comment_actions

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotTFCCommand = errors.New("not a TFC command")
	ErrOtherTFTool   = errors.New("use 'tfc' to interact with tfbuddy")
	ErrNoNotePassed  = errors.New("no notes passed in note block")
	ErrInvalidAction = errors.New("invalid tfc action")
	ErrPermanent     = fmt.Errorf("could not parse comment as command. %w", utils.ErrPermanent)
)

Functions

This section is empty.

Types

type CommentArgs

type CommentArgs struct {
	Agent   string
	Command string
	Rest    []string
}

type CommentOpts

type CommentOpts struct {
	TriggerOpts *tfc_trigger.TFCTriggerOptions
	Args        CommentArgs `positional-args:"yes" required:"yes"`
}

func ParseCommentCommand

func ParseCommentCommand(noteBody string) (*CommentOpts, error)

Jump to

Keyboard shortcuts

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