create

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCreate

func NewCmdCreate(f *factory.Factory, runF func(*Options) error) *cobra.Command

NewCmdCreate builds the `webhook create` cobra command.

Types

type Options

type Options struct {
	Hostname string
	URL      string
	Events   string // comma-separated
	Secret   string // "-" reads from stdin; @PATH reads from file
	Active   bool

	// Args[0] = PROJECT/REPO
	Args []string

	// Stdin is overridable in tests; defaults to os.Stdin when nil.
	Stdin io.Reader
}

Options holds parsed flags for `webhook create`.

Jump to

Keyboard shortcuts

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