MCPcopy Create free account
hub / github.com/entireio/git-sync / newVersionCmd

Function newVersionCmd

cmd/git-sync/version.go:10–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func newVersionCmd() *cobra.Command {
11 return &cobra.Command{
12 Use: "version",
13 Short: "Show build information",
14 Run: func(cmd *cobra.Command, _ []string) {
15 fmt.Fprintf(cmd.OutOrStdout(), "git-sync %s (commit %s, built %s)\n",
16 versioninfo.Version, versioninfo.Commit, versioninfo.Date)
17 },
18 }
19}

Callers 1

newRootCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected