MCPcopy Create free account
hub / github.com/canopy-network/canopy / argToInt

Function argToInt

cmd/cli/query.go:500–506  ·  view source on GitHub ↗
(arg string)

Source from the content-addressed store, hash-verified

498}
499
500func argToInt(arg string) int {
501 i, err := strconv.Atoi(arg)
502 if err != nil {
503 l.Fatal(err.Error())
504 }
505 return i
506}
507
508func argToBool(arg string) bool {
509 value, err := strconv.ParseBool(arg)

Callers 3

query.goFile · 0.85
getPoolArgsFunction · 0.85
admin.goFile · 0.85

Calls 2

FatalMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected