Documentation
¶
Overview ¶
Package hook implements the `bitbottle workspace hook` command group.
Index ¶
- func NewCmdCreate(f *factory.Factory, runF func(*CreateOptions) error) *cobra.Command
- func NewCmdDelete(f *factory.Factory, runF func(*DeleteOptions) error) *cobra.Command
- func NewCmdList(f *factory.Factory, runF func(*ListOptions) error) *cobra.Command
- type CreateOptions
- type DeleteOptions
- type ListOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdCreate ¶
NewCmdCreate constructs the cobra command for `workspace hook create`.
func NewCmdDelete ¶
NewCmdDelete constructs the cobra command for `workspace hook delete`.
func NewCmdList ¶
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 ¶
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`.
Click to show internal directories.
Click to hide internal directories.