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
Shulhan 12aa70b52f command/path: fix typo on command description
Previously, the Description for “step path” command is
“step ca command prints …”, it should be “step path command prints …”.

This changes fix the typo.
2020-01-31 12:08:45 +07:00

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