1
0
mirror of https://github.com/smallstep/cli.git synced 2026-10-25 23:19:18 +03:00
Files
step-ca-cli/command/path/path.go
2020-03-31 10:48:35 -07:00

27 lines
590 B
Go

package path
import (
"fmt"
"github.com/smallstep/cli/command"
"github.com/smallstep/cli/config"
"github.com/urfave/cli"
)
func init() {
cmd := cli.Command{
Name: "path",
Usage: "print the configured step path and exit",
UsageText: "step path",
Description: `**step path** command prints the configured step path and exits.
The default step path of $HOME/.step can be overridden with the **STEPPATH** environment variable.`,
Action: cli.ActionFunc(func(ctx *cli.Context) error {
fmt.Println(config.StepPath())
return nil
}),
}
command.Register(cmd)
}