* Retrieve the command to execute the provided action, including both the binary * and command line flags.
(action: FormatterAction)
| 60 | * and command line flags. |
| 61 | */ |
| 62 | commandFor(action: FormatterAction): string[] { |
| 63 | switch (action) { |
| 64 | case 'check': |
| 65 | return [this.binaryFilePath, ...this.actions.check.commandFlags]; |
| 66 | case 'format': |
| 67 | return [this.binaryFilePath, ...this.actions.format.commandFlags]; |
| 68 | default: |
| 69 | throw Error('Unknown action type'); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * Retrieve the callback for the provided action to determine if an action |
nothing calls this directly
no outgoing calls
no test coverage detected