MCPcopy Create free account
hub / github.com/amrkmn/x / progressPrefix

Method progressPrefix

scripts/log.ts:72–78  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

70 }
71
72 progressPrefix(prefix: string): string {
73 const match = prefix.match(/^\[([^\]]+)\](.*)$/);
74 if (!match) return prefix;
75
76 const [, scope, rest] = match;
77 return `${this.prefix(scope)}${rest}`;
78 }
79}
80
81class TerminalWriter {

Callers 2

constructorMethod · 0.80
transferMethod · 0.80

Calls 1

prefixMethod · 0.95

Tested by

no test coverage detected