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, args []string) error { cmd.SilenceUsage = true allCfgs, err := allKubectlConfigs() versionInternal(cmd.Context(), allCfgs, os.Stdout, flags.Contexts) if err != nil { return errors.Wrap(err, "unable to parse kubectl config") } return nil }, } )
Functions ¶
func GetVersionReadCloser ¶
GetVersionReadCloser returns a ReadCloser with the output produced by running the "nomos version" command as a string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.