MCPcopy Create free account
hub / github.com/docker/secrets-engine / VersionCommand

Function VersionCommand

plugins/pass/commands/version.go:26–36  ·  view source on GitHub ↗
(info VersionInfo)

Source from the content-addressed store, hash-verified

24}
25
26func VersionCommand(info VersionInfo) *cobra.Command {
27 return &cobra.Command{
28 Short: "Show the version information",
29 Use: "version",
30 Hidden: true,
31 Args: cobra.ExactArgs(0),
32 Run: func(cmd *cobra.Command, _ []string) {
33 cmd.Printf("Version: %s\nCommit: %s\n", info.Version, info.Commit)
34 },
35 }
36}

Callers 1

Test_VersionCommandFunction · 0.85

Calls 1

PrintfMethod · 0.65

Tested by 1

Test_VersionCommandFunction · 0.68