Documentation
¶
Overview ¶
Package copy provides commands to copy resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceCmd ¶ added in v1.19.0
type ResourceCmd struct {
format.Writer `kong:"-"`
Name string `arg:"" help:"Name of the resource to copy." default:"" completion-predictor:"resource_name"`
TargetName string `help:"Target name of the new resource. A random name is generated if omitted." default:""`
TargetProject string `` /* 129-byte string literal not displayed */
}
ResourceCmd is the shared base for the copy sub-commands.
It has to be exported so that Kong initializes the embedded format.Writer, see format.Writer.BeforeApply.
func (*ResourceCmd) BeforeApply ¶ added in v1.19.0
func (cmd *ResourceCmd) BeforeApply(writer io.Writer) error
BeforeApply initializes Writer from Kong's bound io.Writer.
Click to show internal directories.
Click to hide internal directories.