Debian Codegraph @

command/path/path.go

raw symbols SCIP
1 package path
2
3 import (
4 "fmt"
5
6 "github.com/smallstep/cli/command"
7 "github.com/smallstep/cli/config"
8 "github.com/urfave/cli"
9 )
10
11 func init() {
12 cmd := cli.Command{
13 Name: "path",
14 Usage: "print the configured step path and exit",
15 UsageText: "step path",
16 Description: `**step path** command prints the configured step path and exits.
17
18 The default step path of $HOME/.step can be overridden with the **STEPPATH** environment variable.`,
19 Action: cli.ActionFunc(func(ctx *cli.Context) error {
20 fmt.Println(config.StepPath())
21 return nil
22 }),
23 }
24
25 command.Register(cmd)
26 }