(client: GitClient, unsanitizedArgs: string[])
| 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. */ |
nothing calls this directly
no test coverage detected