hook

package
v1.97.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package hook implements the `bitbottle workspace hook` command group.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCreate

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

NewCmdCreate constructs the cobra command for `workspace hook create`.

func NewCmdDelete

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

NewCmdDelete constructs the cobra command for `workspace hook delete`.

func NewCmdList

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

NewCmdList constructs the cobra command for `workspace hook list`.

Types

type CreateOptions

type CreateOptions struct {
	Hostname  string
	Workspace string
	URL       string
	Events    []string
	Active    bool
}

CreateOptions carries parsed flags for `workspace hook create`.

type DeleteOptions

type DeleteOptions struct {
	Hostname  string
	Workspace string
	UUID      string
}

DeleteOptions carries parsed flags for `workspace hook delete`.

type ListOptions

type ListOptions struct {
	Output    format.OutputConfig
	Hostname  string
	Workspace string
}

ListOptions carries parsed flags for `workspace hook list`.

Jump to

Keyboard shortcuts

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