MCPcopy
hub / github.com/moonD4rk/HackBrowserData / versionCmd

Function versionCmd

cmd/hack-browser-data/version.go:16–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14)
15
16func versionCmd() *cobra.Command {
17 return &cobra.Command{
18 Use: "version",
19 Short: "Print version information",
20 Run: func(cmd *cobra.Command, _ []string) {
21 resolveVersionFromBuildInfo()
22 fmt.Fprintf(cmd.OutOrStdout(), "hack-browser-data %s\n commit: %s\n built: %s\n",
23 version, commit, buildDate)
24 },
25 }
26}
27
28func resolveVersionFromBuildInfo() {
29 if version != "dev" {

Callers 1

rootCmdFunction · 0.85

Calls 1

Tested by

no test coverage detected