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

Function CompDebugln

completions.go:976–978  ·  view source on GitHub ↗

CompDebugln prints the specified string with a newline at the end to the same file as where the completion script prints its logs. Such logs are only printed when the user has set the environment variable BASH_COMP_DEBUG_FILE to the path of some file to be used.

(msg string, printToStdErr bool)

Source from the content-addressed store, hash-verified

974// Such logs are only printed when the user has set the environment
975// variable BASH_COMP_DEBUG_FILE to the path of some file to be used.
976func CompDebugln(msg string, printToStdErr bool) {
977 CompDebug(fmt.Sprintf("%s\n", msg), printToStdErr)
978}
979
980// CompError prints the specified completion message to stderr.
981func CompError(msg string) {

Callers

nothing calls this directly

Calls 1

CompDebugFunction · 0.85

Tested by

no test coverage detected