MCPcopy Index your code
hub / github.com/docker/docker-agent / newVersionCmd

Function newVersionCmd

cmd/root/version.go:12–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10)
11
12func newVersionCmd() *cobra.Command {
13 return &cobra.Command{
14 Use: "version",
15 Short: "Print the version information",
16 Long: "Display the version and commit hash",
17 Args: cobra.NoArgs,
18 Run: runVersionCommand,
19 }
20}
21
22func runVersionCommand(cmd *cobra.Command, args []string) {
23 telemetry.TrackCommand(cmd.Context(), "version", args)

Callers 1

NewRootCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected