You've already forked step-ca-cli
mirror of
https://github.com/smallstep/cli.git
synced 2025-08-07 16:02:54 +03:00
24
command/path/path.go
Normal file
24
command/path/path.go
Normal file
@@ -0,0 +1,24 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user