chore(cmd): Remove IntVar and move to Int64Var

This commit is contained in:
Hugo committed 2024-08-21 13:55:58 +01:00
1 parent 3195dcba4e
commit bf9dbd818e
6 files changed
+13 -77

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ func PopulateCommonFlags(c *base.Command, f *base.FlagSet, resourceType string,
Usage: fmt.Sprintf("Description to set on the %s.", resourceType),
})
case "version":
f.IntVar(&base.IntVar{
f.Int64Var(&base.Int64Var{
Name: "version",
Target: &c.FlagVersion,
Usage: fmt.Sprintf("The version of the %s against which to perform an update operation. If not specified, the command will perform a check-and-set automatically.", resourceType),