You've already forked step-ca-cli
mirror of
https://github.com/smallstep/cli.git
synced 2026-10-25 23:19:18 +03:00
25 lines
492 B
Go
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)
|
|
}
|