mirror of
https://github.com/containers/podman.git
synced 2025-09-26 08:14:14 +08:00

This reverts commit de05e5816869073600ae8e851093b4b9a9d7fab0. Running `go get -u` will change the local Go module causing CI to fail as the local git tree is being changed. Reverting the change for now until we have a better idea. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
25 lines
431 B
Go
25 lines
431 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
|
|
"github.com/onsi/ginkgo/config"
|
|
)
|
|
|
|
func BuildVersionCommand() *Command {
|
|
return &Command{
|
|
Name: "version",
|
|
FlagSet: flag.NewFlagSet("version", flag.ExitOnError),
|
|
UsageCommand: "ginkgo version",
|
|
Usage: []string{
|
|
"Print Ginkgo's version",
|
|
},
|
|
Command: printVersion,
|
|
}
|
|
}
|
|
|
|
func printVersion([]string, []string) {
|
|
fmt.Printf("Ginkgo Version %s\n", config.VERSION)
|
|
}
|