1
0
mirror of https://github.com/smallstep/cli.git synced 2026-10-24 11:19:19 +03:00
Files
step-ca-cli/command/path/path.go
2018-11-21 15:53:19 -08:00

25 lines
492 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 ca** command prints the configured step path and exit",
Action: cli.ActionFunc(func(ctx *cli.Context) error {
fmt.Println(config.StepPath())
return nil
}),
}
command.Register(cmd)
}