MCPcopy Create free account
hub / github.com/acode/cli / formatMessage

Method formatMessage

cli/local_gateway.js:26–29  ·  view source on GitHub ↗
(message, logType)

Source from the content-addressed store, hash-verified

24 }
25
26 formatMessage (message, logType) {
27 let color = {result: 'cyan', error: 'red'}[logType] || 'grey';
28 return chalk[color](super.formatMessage(message, logType));
29 }
30
31 service (serviceName) {
32 this.serviceName = serviceName.replace(/^\//gi, '');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected