MCPcopy
hub / github.com/tj/commander.js / configureOutput

Method configureOutput

lib/command.js:246–254  ·  view source on GitHub ↗

* The default output goes to stdout and stderr. You can customise this for special * applications. You can also customise the display of errors by overriding outputError. * * The configuration properties are all functions: * * // change how output being written, defaults to stdout

(configuration)

Source from the content-addressed store, hash-verified

244 */
245
246 configureOutput(configuration) {
247 if (configuration === undefined) return this._outputConfiguration;
248
249 this._outputConfiguration = {
250 ...this._outputConfiguration,
251 ...configuration,
252 };
253 return this;
254 }
255
256 /**
257 * Display the help or a custom message after an error occurs.

Callers 15

makeCommandFunction · 0.95
getSuggestionFunction · 0.80
createTestCommandFunction · 0.80
getSuggestionFunction · 0.80
makeProgramFunction · 0.80
makeProgramFunction · 0.80

Calls

no outgoing calls

Tested by 5

makeCommandFunction · 0.76
getSuggestionFunction · 0.64
getSuggestionFunction · 0.64
makeProgramFunction · 0.64
makeProgramFunction · 0.64