Debian Codegraph @

command/version/version.go

raw symbols SCIP
1 package version
2
3 import (
4 "fmt"
5
6 "github.com/urfave/cli"
7
8 "github.com/smallstep/cli/command"
9 "github.com/smallstep/cli/config"
10 )
11
12 func init() {
13 cmd := cli.Command{
14 Name: "version",
15 Usage: "display the current version of the cli",
16 UsageText: "**step version**",
17 Description: `**step version** prints the version of the cli.`,
18 Action: Command,
19 }
20
21 command.Register(cmd)
22 }
23
24 // Command prints out the current version of the tool
25 func Command(c *cli.Context) error {
26 fmt.Printf("%s\n", config.Version())
27 fmt.Printf("Release Date: %s\n", config.ReleaseDate())
28 return nil
29 }