version

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Cmd is the Cobra object representing the nomos version command.
	Cmd = &cobra.Command{
		Use:   "version",
		Short: "Prints the version of ACM for each cluster as well this CLI",
		Long: `Prints the version of Configuration Management installed on each cluster and the version
of the "nomos" client binary for debugging purposes.`,
		Example: `  nomos version`,
		RunE: func(cmd *cobra.Command, _ []string) error {

			cmd.SilenceUsage = true

			allCfgs, err := allKubectlConfigs()
			versionInternal(cmd.Context(), allCfgs, os.Stdout)

			if err != nil {
				return fmt.Errorf("unable to parse kubectl config: %w", err)
			}
			return nil
		},
	}
)

Functions

func GetVersionReadCloser

func GetVersionReadCloser(ctx context.Context) (io.ReadCloser, error)

GetVersionReadCloser returns a ReadCloser with the output produced by running the "nomos version" command as a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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