Skip to content

Commit

Permalink
fix: remove fallback root cmd.cmd.SetVersionTemplate which no longer …
Browse files Browse the repository at this point in the history
…works with DisableFlagParsing
  • Loading branch information
gregmagolan committed May 4, 2023
1 parent 0475dd2 commit 3e4d674
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/aspect/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ func NewCmd(
Version: buildinfo.Current().Version(),
}

// Fallback version template incase it is not handled by MaybeAspectVersionFlag
cmd.SetVersionTemplate(fmt.Sprintf("%s %s\n", buildinfo.Current().GnuName(), buildinfo.Current().Version()))

flags.AddGlobalFlags(cmd, defaultInteractive)
cmd.AddGroup(&cobra.Group{ID: "common", Title: "Common Bazel Commands:"})
cmd.AddGroup(&cobra.Group{ID: "aspect", Title: "Commands only in Aspect CLI:"})
Expand Down

0 comments on commit 3e4d674

Please sign in to comment.