MCPcopy Index your code
hub / github.com/tinyauthapp/tinyauth / versionCmd

Function versionCmd

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

Source from the content-addressed store, hash-verified

9)
10
11func versionCmd() *cli.Command {
12 return &cli.Command{
13 Name: "version",
14 Description: "Print the version number of Tinyauth",
15 Configuration: nil,
16 Resources: nil,
17 Run: func(_ []string) error {
18 fmt.Printf("Version: %s\n", config.Version)
19 fmt.Printf("Commit Hash: %s\n", config.CommitHash)
20 fmt.Printf("Build Timestamp: %s\n", config.BuildTimestamp)
21 return nil
22 },
23 }
24}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected