cmd

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootCmd = cobra.Command{
		Use:     "glasskube",
		Version: config.Version,
		Short:   "🧊 The next generation Package Manager for Kubernetes 📦",
		PersistentPreRun: func(cmd *cobra.Command, args []string) {
			telemetry.Init()
			if !rootCmdOptions.SkipUpdateCheck {
				cliutils.UpdateFetch()
			}

			signals := make(chan os.Signal, 1)
			signal.Notify(signals, os.Interrupt)
			go func() {
				sig := <-signals

				if cmd.Name() != openCmd.Name() {
					cliutils.ExitFromSignal(&sig)
				}
			}()
		},
		PersistentPostRun: func(cmd *cobra.Command, args []string) {
			cliutils.ExitSuccess()
		},
	}
)

Functions

This section is empty.

Types

type ListCmdOptions added in v0.0.3

type ListCmdOptions struct {
	ListInstalledOnly bool
	ListOutdatedOnly  bool
	ShowDescription   bool
	ShowLatestVersion bool
	More              bool
	ListFormat        ListFormat
}

type ListFormat added in v0.5.0

type ListFormat string
const (
	JSON ListFormat = "json"
	YAML ListFormat = "yaml"
)

func (*ListFormat) Set added in v0.5.0

func (o *ListFormat) Set(value string) error

func (*ListFormat) String added in v0.5.0

func (o *ListFormat) String() string

func (*ListFormat) Type added in v0.5.0

func (o *ListFormat) Type() string

Jump to

Keyboard shortcuts

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