MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getDescription

Method getDescription

packages/core/src/tools/shell.ts:57–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 getDescription(): string {
58 let description = `${this.params.command}`;
59 // append optional [in directory]
60 // note description is needed even if validation fails due to absolute path
61 if (this.params.directory) {
62 description += ` [in ${this.params.directory}]`;
63 }
64 // append optional (description), replacing any line breaks with spaces
65 if (this.params.description) {
66 description += ` (${this.params.description.replace(/\n/g, ' ')})`;
67 }
68 return description;
69 }
70
71 override async shouldConfirmExecute(
72 _abortSignal: AbortSignal,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected