edit

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Dir           string
	Requirements  jxcore.Requirements
	SecretStorage string
	Webhook       string
	Flags         RequirementBools
	Cmd           *cobra.Command
	Args          []string
	// contains filtered or unexported fields
}

Options the CLI options for this command

func NewCmdRequirementsEdit

func NewCmdRequirementsEdit() (*cobra.Command, *Options)

NewCmdRequirementsEdit creates the new command

func (*Options) FlagChanged

func (o *Options) FlagChanged(name string) bool

FlagChanged returns true if the given flag was supplied on the command line

func (*Options) Run

func (o *Options) Run() error

Run runs the command

type RequirementBools

type RequirementBools struct {
	AutoUpgrade, EnvironmentGitPublic, GitOps, Kaniko, Terraform bool
	VaultRecreateBucket, VaultDisableURLDiscover                 bool
}

RequirementBools for the boolean flags we only update if specified on the CLI

Jump to

Keyboard shortcuts

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