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

Add flag --force on all commands using utils.WriteFile

Fixes smallstep/ca-component#121
This commit is contained in:
Mariano Cano
2018-11-27 17:36:27 -08:00
parent 1d001f5e28
commit 0cface6e9b
18 changed files with 95 additions and 240 deletions

View File

@@ -7,15 +7,17 @@ import (
"github.com/pkg/errors"
"github.com/smallstep/certificates/ca"
"github.com/smallstep/cli/command"
"github.com/smallstep/cli/crypto/pemutil"
"github.com/smallstep/cli/errs"
"github.com/smallstep/cli/flags"
"github.com/urfave/cli"
)
func rootComand() cli.Command {
return cli.Command{
Name: "root",
Action: cli.ActionFunc(rootAction),
Action: command.ActionFunc(rootAction),
Usage: "downloads and validates the root certificate",
UsageText: `**step ca root** <root-file>
[**--ca-url**=<uri>] [**--fingerprint**=<fingerprint>]`,
@@ -50,6 +52,7 @@ $ step ca root root_ca.crt \
Flags: []cli.Flag{
caURLFlag,
fingerprintFlag,
flags.Force,
},
}
}