copy

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

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 Cmd

type Cmd struct {
	Application applicationCmd `cmd:"" aliases:"app"`
}

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.

Jump to

Keyboard shortcuts

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