MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Name

Method Name

cmd/cql/internal/base.go:88–94  ·  view source on GitHub ↗

Name returns the command's short name: the last word in the usage line before a flag or argument.

()

Source from the content-addressed store, hash-verified

86
87// Name returns the command's short name: the last word in the usage line before a flag or argument.
88func (c *Command) Name() string {
89 name := c.LongName()
90 if i := strings.LastIndex(name, " "); i >= 0 {
91 name = name[i+1:]
92 }
93 return name
94}
95
96// Usage print base usage help info.
97func (c *Command) Usage() {

Callers 15

TestChainFunction · 0.80
TestConnFunction · 0.80
BenchmarkTypesFunction · 0.80
setupFunction · 0.80
BenchmarkGenKeyFunction · 0.80
BenchmarkSignFunction · 0.80
BenchmarkVerifyFunction · 0.80
BenchmarkParsePublicKeyFunction · 0.80
BenchmarkParseSignatureFunction · 0.80

Calls 1

LongNameMethod · 0.95

Tested by 15

TestChainFunction · 0.64
TestConnFunction · 0.64
BenchmarkTypesFunction · 0.64
setupFunction · 0.64
BenchmarkGenKeyFunction · 0.64
BenchmarkSignFunction · 0.64
BenchmarkVerifyFunction · 0.64
BenchmarkParsePublicKeyFunction · 0.64
BenchmarkParseSignatureFunction · 0.64