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.
Click to show internal directories.
Click to hide internal directories.