MCPcopy Create free account
hub / github.com/cogentcore/core / cmdString

Function cmdString

cli/cli.go:95–100  ·  view source on GitHub ↗

cmdString is a simple helper function that returns a string with [cmdName] and the given command name string combined to form a string representing the complete command being run.

(cmd string)

Source from the content-addressed store, hash-verified

93// with [cmdName] and the given command name string combined
94// to form a string representing the complete command being run.
95func cmdString(cmd string) string {
96 if cmd == "" {
97 return cmdName()
98 }
99 return cmdName() + " " + cmd
100}

Callers 1

RunFunction · 0.85

Calls 1

cmdNameFunction · 0.85

Tested by

no test coverage detected