MCPcopy Create free account
hub / github.com/angular/dev-infra / constructor

Method constructor

ng-dev/utils/git/git-client.ts:22–27  ·  view source on GitHub ↗
(client: GitClient, unsanitizedArgs: string[])

Source from the content-addressed store, hash-verified

20 // Note: Do not expose the unsanitized arguments as a public property. NodeJS
21 // could print the properties of an error instance and leak e.g. a token.
22 constructor(client: GitClient, unsanitizedArgs: string[]) {
23 // Errors are not guaranteed to be caught. To ensure that we don't
24 // accidentally leak the Github token that might be used in a command,
25 // we sanitize the command that will be part of the error message.
26 super(`Command failed: git ${client.sanitizeConsoleOutput(unsanitizedArgs.join(' '))}`);
27 }
28}
29
30/** The options available for the `GitClient``run` and `runGraceful` methods. */

Callers

nothing calls this directly

Calls 1

sanitizeConsoleOutputMethod · 0.45

Tested by

no test coverage detected