MCPcopy
hub / github.com/spf13/cobra / HasExample

Method HasExample

command.go:1591–1593  ·  view source on GitHub ↗

HasExample determines if the command has example.

()

Source from the content-addressed store, hash-verified

1589
1590// HasExample determines if the command has example.
1591func (c *Command) HasExample() bool {
1592 return len(c.Example) > 0
1593}
1594
1595// Runnable determines if the command is itself runnable.
1596func (c *Command) Runnable() bool {

Callers 1

defaultUsageFuncFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected