(ctx *cli.Context, reader *bufio.Reader)
| 188 | } |
| 189 | } |
| 190 | func checkType(ctx *cli.Context, reader *bufio.Reader) string { |
| 191 | t := "" |
| 192 | typeFlag := utils.GetFlagName(utils.AccountTypeFlag) |
| 193 | if ctx.IsSet(typeFlag) { |
| 194 | if _, ok := keyTypeMap[ctx.String(typeFlag)]; ok { |
| 195 | t = keyTypeMap[ctx.String(typeFlag)].name |
| 196 | fmt.Printf("%s is selected. \n", t) |
| 197 | } else { |
| 198 | fmt.Printf("%s is not a valid content for option -t \n", ctx.String(typeFlag)) |
| 199 | t = chooseKeyType(reader) |
| 200 | } |
| 201 | } else { |
| 202 | t = chooseKeyType(reader) |
| 203 | } |
| 204 | return t |
| 205 | } |
| 206 | func checkCurve(ctx *cli.Context, reader *bufio.Reader, t *string) string { |
| 207 | bitFlag := utils.GetFlagName(utils.AccountKeylenFlag) |
| 208 | c := "" |
no test coverage detected