1
0
mirror of https://github.com/smallstep/cli.git synced 2025-08-07 16:02:54 +03:00

Move --steppath flag to the command step path

Fixes smallstep/step#133
This commit is contained in:
Mariano Cano
2018-11-21 15:53:19 -08:00
parent 7671d081d0
commit 79d7944728
2 changed files with 26 additions and 18 deletions

24
command/path/path.go Normal file
View 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)
}