this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

goat: rename crypto command to key

+11 -11
+10 -10
cmd/goat/crypto.go cmd/goat/key.go
··· 8 8 "github.com/urfave/cli/v2" 9 9 ) 10 10 11 - var cmdCrypto = &cli.Command{ 12 - Name: "crypto", 11 + var cmdKey = &cli.Command{ 12 + Name: "key", 13 13 Usage: "sub-commands for cryptographic keys", 14 14 Subcommands: []*cli.Command{ 15 15 &cli.Command{ ··· 22 22 Usage: "indicate curve type (P-256 is default)", 23 23 }, 24 24 &cli.BoolFlag{ 25 - Name: "terse", 26 - Usage: "print just the secret key, in multikey format", 25 + Name: "terse", 26 + Usage: "print just the secret key, in multikey format", 27 27 }, 28 28 }, 29 - Action: runCryptoGenerate, 29 + Action: runKeyGenerate, 30 30 }, 31 31 &cli.Command{ 32 - Name: "inspect", 33 - Usage: "parses and outputs metadata about a public or secret key", 32 + Name: "inspect", 33 + Usage: "parses and outputs metadata about a public or secret key", 34 34 ArgsUsage: `<key>`, 35 - Action: runCryptoInspect, 35 + Action: runKeyInspect, 36 36 }, 37 37 }, 38 38 } 39 39 40 - func runCryptoGenerate(cctx *cli.Context) error { 40 + func runKeyGenerate(cctx *cli.Context) error { 41 41 var priv crypto.PrivateKey 42 42 var privMultibase string 43 43 switch cctx.String("type") { ··· 87 87 } 88 88 } 89 89 90 - func runCryptoInspect(cctx *cli.Context) error { 90 + func runKeyInspect(cctx *cli.Context) error { 91 91 s := cctx.Args().First() 92 92 if s == "" { 93 93 return fmt.Errorf("need to provide key as an argument")
+1 -1
cmd/goat/main.go
··· 37 37 cmdBsky, 38 38 cmdRecord, 39 39 cmdSyntax, 40 - cmdCrypto, 40 + cmdKey, 41 41 cmdPds, 42 42 } 43 43 return app.Run(args)