varOptionIPNSBase=cmds.StringOption(ipnsKeyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36")
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(ke.IPNSKeyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36"),
ke.OptionIPNSBase,
},
Arguments:[]cmds.Argument{
cmds.StringArg("name",true,false,"name of key to create"),
...
...
@@ -108,7 +108,7 @@ var keyGenCmd = &cmds.Command{
@@ -223,7 +223,7 @@ var keyImportCmd = &cmds.Command{
Tagline:"Import a key and prints imported key id",
},
Options:[]cmds.Option{
cmds.StringOption(ke.IPNSKeyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36"),
ke.OptionIPNSBase,
},
Arguments:[]cmds.Argument{
cmds.StringArg("name",true,false,"name to associate with key in keychain"),
...
...
@@ -236,7 +236,7 @@ var keyImportCmd = &cmds.Command{
returnfmt.Errorf("cannot import key with name 'self'")
@@ -303,10 +303,10 @@ var keyListCmd = &cmds.Command{
},
Options:[]cmds.Option{
cmds.BoolOption("l","Show extra information about keys."),
cmds.StringOption(ke.IPNSKeyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36"),
@@ -352,14 +352,14 @@ var keyRenameCmd = &cmds.Command{
},
Options:[]cmds.Option{
cmds.BoolOption(keyStoreForceOptionName,"f","Allow to overwrite an existing key."),
cmds.StringOption(ke.IPNSKeyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36"),
@@ -402,14 +402,14 @@ var keyRmCmd = &cmds.Command{
},
Options:[]cmds.Option{
cmds.BoolOption("l","Show extra information about keys."),
cmds.StringOption(ke.IPNSKeyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36"),
@@ -74,10 +74,10 @@ var ipnspsSubsCmd = &cmds.Command{
Tagline:"Show current name subscriptions",
},
Options:[]cmds.Option{
cmds.StringOption(ke.IPNSKeyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36"),
@@ -83,14 +83,14 @@ Alternatively, publish an <ipfs-path> using a valid PeerID (as listed by
cmds.StringOption(ttlOptionName,"Time duration this record should be cached for. Uses the same syntax as the lifetime option. (caution: experimental)"),
cmds.StringOption(keyOptionName,"k","Name of the key to be used or a valid PeerID, as listed by 'ipfs key list -l'.").WithDefault("self"),
cmds.BoolOption(quieterOptionName,"Q","Write only final hash."),
cmds.StringOption(ke.IPNSKeyFormatOptionName,"","Encoding used for keys: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}.").WithDefault("base36"),