Yargs command handler for the command.
({shaOrRef, check}: Arguments<Options>)
| 30 | |
| 31 | /** Yargs command handler for the command. */ |
| 32 | async function handler({shaOrRef, check}: Arguments<Options>) { |
| 33 | const git = await GitClient.get(); |
| 34 | const sha = shaOrRef || git.mainBranchName; |
| 35 | const executionCmd = check ? checkFiles : formatFiles; |
| 36 | const allChangedFilesSince = git.allChangesFilesSince(sha); |
| 37 | process.exitCode = await executionCmd(allChangedFilesSince); |
| 38 | } |
| 39 | |
| 40 | /** CLI command module. */ |
| 41 | export const ChangedModule: CommandModule<{}, Options> = { |
nothing calls this directly
no test coverage detected