We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46d72cb commit 3afb75dCopy full SHA for 3afb75d
tools/setup-envtest/main.go
@@ -52,6 +52,7 @@ var (
52
53
index = flag.String("index", remote.DefaultIndexURL, "index to discover envtest binaries")
54
55
+ // BranchVersion is the current setup-envtest branch that is used for the binary version of setup-envtest.
56
BranchVersion = "unknown"
57
)
58
tools/setup-envtest/workflows/workflows.go
@@ -87,10 +87,13 @@ func (f Sideload) Do(env *envp.Env) {
87
env.PrintInfo(f.PrintFormat)
88
}
89
90
+// Vresion is the workflow that shows the current binary verison
91
+// of setup-envtest.
92
type Version struct {
93
BinaryVersion string
94
95
96
+// Do executes the workflow.
97
func (v Version) Do(env *envp.Env) {
98
fmt.Fprintf(env.Out, "setup-envtest version: %s\n", v.BinaryVersion)
99
0 commit comments