cmd/clef: add --vault flag

This commit is contained in:
Huiyi Li 2020-01-18 19:10:45 -08:00
parent 9b09c0fc83
commit b2c09a7e62

View file

@ -130,6 +130,10 @@ var (
Name: "stdio-ui-test", Name: "stdio-ui-test",
Usage: "Mechanism to test interface between Clef and UI. Requires 'stdio-ui'.", Usage: "Mechanism to test interface between Clef and UI. Requires 'stdio-ui'.",
} }
vaultFlag = cli.StringFlag{
Name: "vault",
Usage: "URI to the user managed database which stores Clef vault data (ruleset & kps)",
}
app = cli.NewApp() app = cli.NewApp()
initCommand = cli.Command{ initCommand = cli.Command{
Action: utils.MigrateFlags(initializeSecrets), Action: utils.MigrateFlags(initializeSecrets),
@ -219,6 +223,7 @@ func init() {
ruleFlag, ruleFlag,
stdiouiFlag, stdiouiFlag,
testFlag, testFlag,
vaultFlag,
advancedMode, advancedMode,
} }
app.Action = signer app.Action = signer