set

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: 6 Imported by: 0

Documentation

Overview

Package set implements the `variable set` subcommand.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdSet

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

NewCmdSet builds the `variable set` cobra command.

Types

type Options

type Options struct {
	Hostname string
	Body     string // takes precedence over positional VALUE; "-" reads stdin
	Secured  bool
	Scope    string // "repository" (default) | "workspace" | "deployment"
	EnvUUID  string // required when scope=deployment

	// Args[0] = PROJECT/REPO, Args[1] = KEY, Args[2] (optional) = VALUE
	Args []string

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

Options holds parsed flags for `variable set`.

Jump to

Keyboard shortcuts

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