mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-11 09:04:37 +00:00
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.23.3 to 2.23.4. - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.23.3...v2.23.4) --- updated-dependencies: - dependency-name: github.com/onsi/ginkgo/v2 dependency-version: 2.23.4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
59 lines
1.5 KiB
Go
59 lines
1.5 KiB
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
_ "go.uber.org/automaxprocs"
|
|
"github.com/onsi/ginkgo/v2/ginkgo/build"
|
|
"github.com/onsi/ginkgo/v2/ginkgo/command"
|
|
"github.com/onsi/ginkgo/v2/ginkgo/generators"
|
|
"github.com/onsi/ginkgo/v2/ginkgo/labels"
|
|
"github.com/onsi/ginkgo/v2/ginkgo/outline"
|
|
"github.com/onsi/ginkgo/v2/ginkgo/run"
|
|
"github.com/onsi/ginkgo/v2/ginkgo/unfocus"
|
|
"github.com/onsi/ginkgo/v2/ginkgo/watch"
|
|
"github.com/onsi/ginkgo/v2/types"
|
|
)
|
|
|
|
var program command.Program
|
|
|
|
func GenerateCommands() []command.Command {
|
|
return []command.Command{
|
|
watch.BuildWatchCommand(),
|
|
build.BuildBuildCommand(),
|
|
generators.BuildBootstrapCommand(),
|
|
generators.BuildGenerateCommand(),
|
|
labels.BuildLabelsCommand(),
|
|
outline.BuildOutlineCommand(),
|
|
unfocus.BuildUnfocusCommand(),
|
|
BuildVersionCommand(),
|
|
}
|
|
}
|
|
|
|
func main() {
|
|
program = command.Program{
|
|
Name: "ginkgo",
|
|
Heading: fmt.Sprintf("Ginkgo Version %s", types.VERSION),
|
|
Commands: GenerateCommands(),
|
|
DefaultCommand: run.BuildRunCommand(),
|
|
DeprecatedCommands: []command.DeprecatedCommand{
|
|
{Name: "convert", Deprecation: types.Deprecations.Convert()},
|
|
{Name: "blur", Deprecation: types.Deprecations.Blur()},
|
|
{Name: "nodot", Deprecation: types.Deprecations.Nodot()},
|
|
},
|
|
}
|
|
|
|
program.RunAndExit(os.Args)
|
|
}
|
|
|
|
func BuildVersionCommand() command.Command {
|
|
return command.Command{
|
|
Name: "version",
|
|
Usage: "ginkgo version",
|
|
ShortDoc: "Print Ginkgo's version",
|
|
Command: func(_ []string, _ []string) {
|
|
fmt.Printf("Ginkgo Version %s\n", types.VERSION)
|
|
},
|
|
}
|
|
}
|