MCPcopy Create free account
hub / github.com/archlinux-de/pkgstats-cli / newVersionCmd

Function newVersionCmd

cmd/version.go:11–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func newVersionCmd() *cobra.Command {
12 return &cobra.Command{
13 Use: "version",
14 Short: "Show the pkgstats client version",
15 Args: cobra.NoArgs,
16 Hidden: true,
17 Run: func(cmd *cobra.Command, args []string) {
18 fmt.Fprintln(cmd.OutOrStdout(), "pkgstats, version", build.Version)
19 },
20 }
21}

Callers 1

NewRootCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected