Skip to content

Commit 87cd7de

Browse files
authored
Merge pull request #1581 from smallstep/mariano/fix-1579
Overwrite file when using --force with `step crypto key format`
2 parents 1d49198 + 702f35b commit 87cd7de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

command/crypto/key/format.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/pkg/errors"
1414
"github.com/urfave/cli"
1515

16+
"github.com/smallstep/cli-utils/command"
1617
"github.com/smallstep/cli-utils/errs"
1718
"github.com/smallstep/cli-utils/fileutil"
1819
"github.com/smallstep/cli-utils/ui"
@@ -27,7 +28,7 @@ import (
2728
func formatCommand() cli.Command {
2829
return cli.Command{
2930
Name: "format",
30-
Action: cli.ActionFunc(formatAction),
31+
Action: command.ActionFunc(formatAction),
3132
Usage: `reformat a public or private key`,
3233
UsageText: `**step crypto key format** <key-file> [**--out**=<file>]`,
3334
Description: `**step crypto key format** prints or writes the key in

0 commit comments

Comments
 (0)