MCPcopy Create free account
hub / github.com/DNAProject/DNA / checkLabel

Function checkLabel

cmd/account.go:183–189  ·  view source on GitHub ↗
(ctx *cli.Context)

Source from the content-addressed store, hash-verified

181 }
182}
183func checkLabel(ctx *cli.Context) string {
184 if ctx.IsSet(utils.GetFlagName(utils.AccountLabelFlag)) {
185 return ctx.String(utils.GetFlagName(utils.AccountLabelFlag))
186 } else {
187 return ""
188 }
189}
190func checkType(ctx *cli.Context, reader *bufio.Reader) string {
191 t := ""
192 typeFlag := utils.GetFlagName(utils.AccountTypeFlag)

Callers 1

accountCreateFunction · 0.85

Calls 2

GetFlagNameFunction · 0.92
StringMethod · 0.45

Tested by

no test coverage detected