commands

package
v2.24.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 103 Imported by: 0

Documentation

Overview

Copyright © 2022 Alexander Block <ablock84@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, args []string, preRun func(ctx context.Context, rootCmd *cobra.Command, flags *GlobalFlags) (context.Context, error)) error

func Main added in v2.18.0

func Main()

func RegisterFlagCompletionFuncs added in v2.9.0

func RegisterFlagCompletionFuncs(cmdStruct interface{}, ccmd *cobra.Command) error

func WithStdStreams added in v2.18.0

func WithStdStreams(ctx context.Context, stdout io.Writer, stderr io.Writer) context.Context

Types

type DeployExtraFlags added in v2.22.0

type DeployExtraFlags struct {
	NoWait bool `group:"misc" help:"Don't wait for objects readiness."`
	Prune  bool `group:"misc" help:"Prune orphaned objects directly after deploying. See the help for the 'prune' sub-command for details."`
}

type GitopsSuspendCmd added in v2.22.0

type GitopsSuspendCmd struct {
	args.GitOpsArgs
	args.OutputFormatFlags
	args.GitOpsLogArgs

	All bool `group:"misc" help:"If enabled, suspend all deployments."`
	// contains filtered or unexported fields
}

func (*GitopsSuspendCmd) Help added in v2.22.0

func (cmd *GitopsSuspendCmd) Help() string

func (*GitopsSuspendCmd) Run added in v2.22.0

func (cmd *GitopsSuspendCmd) Run(ctx context.Context) error

type GlobalFlags added in v2.18.0

type GlobalFlags struct {
	Debug         bool `group:"global" help:"Enable debug logging"`
	NoUpdateCheck bool `group:"global" help:"Disable update check on startup"`
	NoColor       bool `group:"global" help:"Disable colored output"`

	CpuProfile    string `group:"global" help:"Enable CPU profiling and write the result to the given path"`
	GopsAgent     bool   `group:"global" help:"Start gops agent in the background"`
	GopsAgentAddr string `group:"global" help:"Specify the address:port to use for the gops agent" default:"127.0.0.1:0"`
}

type VersionCheckState

type VersionCheckState struct {
	LastVersionCheck time.Time `json:"lastVersionCheck"`
}

Jump to

Keyboard shortcuts

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