Skip to content

Commit

Permalink
add version
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed May 2, 2024
1 parent 36ad104 commit 1ba4e40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var rootCmd = &cobra.Command{
Use: "talm",
Short: "Just like Helm, but for Talos",
Long: ``,
Version: "v0.1.0",
SilenceErrors: true,
SilenceUsage: true,
DisableAutoGenTag: true,
Expand Down Expand Up @@ -48,6 +49,7 @@ func Execute() error {
rootCmd.PersistentFlags().StringSliceVarP(&commands.GlobalArgs.Nodes, "nodes", "n", []string{}, "target the specified nodes")
rootCmd.PersistentFlags().StringSliceVarP(&commands.GlobalArgs.Endpoints, "endpoints", "e", []string{}, "override default endpoints in Talos configuration")
rootCmd.PersistentFlags().StringVar(&commands.GlobalArgs.Cluster, "cluster", "", "Cluster to connect to if a proxy endpoint is used.")
rootCmd.PersistentFlags().Bool("version", false, "Print the version number of the application")

cmd, err := rootCmd.ExecuteContextC(context.Background())
if err != nil && !common.SuppressErrors {
Expand Down

0 comments on commit 1ba4e40

Please sign in to comment.