cmds.StringOption(keyStoreTypeOptionName,"t","type of the key to create: rsa, ed25519").WithDefault(keyStoreAlgorithmDefault),
cmds.IntOption(keyStoreSizeOptionName,"s","size of the key to generate"),
cmds.StringOption(keyFormatOptionName,"","output format: b58mh or b36cid").WithDefault("b36cid"),
cmds.StringOption(keyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36"),
},
Arguments:[]cmds.Argument{
cmds.StringArg("name",true,false,"name of key to create"),
...
...
@@ -109,7 +110,8 @@ var keyGenCmd = &cmds.Command{
@@ -223,7 +225,7 @@ var keyImportCmd = &cmds.Command{
Tagline:"Import a key and prints imported key id",
},
Options:[]cmds.Option{
cmds.StringOption(keyFormatOptionName,"","output format: b58mh or b36cid").WithDefault("b58mh"),
cmds.StringOption(keyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36"),
},
Arguments:[]cmds.Argument{
cmds.StringArg("name",true,false,"name to associate with key in keychain"),
...
...
@@ -236,6 +238,11 @@ var keyImportCmd = &cmds.Command{
returnfmt.Errorf("cannot import key with name 'self'")
@@ -298,10 +305,11 @@ var keyListCmd = &cmds.Command{
},
Options:[]cmds.Option{
cmds.BoolOption("l","Show extra information about keys."),
cmds.StringOption(keyFormatOptionName,"","output format: b58mh or b36cid").WithDefault("b36cid"),
cmds.StringOption(keyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36"),
@@ -346,14 +354,15 @@ var keyRenameCmd = &cmds.Command{
},
Options:[]cmds.Option{
cmds.BoolOption(keyStoreForceOptionName,"f","Allow to overwrite an existing key."),
cmds.StringOption(keyFormatOptionName,"","output format: b58mh or b36cid").WithDefault("b36cid"),
cmds.StringOption(keyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36"),
@@ -395,14 +404,15 @@ var keyRmCmd = &cmds.Command{
},
Options:[]cmds.Option{
cmds.BoolOption("l","Show extra information about keys."),
cmds.StringOption(keyFormatOptionName,"","output format: b58mh or b36cid").WithDefault("b36cid"),
cmds.StringOption(keyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36"),