Yargs command handler for the command.
({check}: Arguments<Options>)
| 27 | |
| 28 | /** Yargs command handler for the command. */ |
| 29 | async function handler({check}: Arguments<Options>) { |
| 30 | const git = await GitClient.get(); |
| 31 | const executionCmd = check ? checkFiles : formatFiles; |
| 32 | const allFiles = git.allFiles(); |
| 33 | process.exitCode = await executionCmd(allFiles); |
| 34 | } |
| 35 | |
| 36 | /** CLI command module. */ |
| 37 | export const AllFilesModule: CommandModule<{}, Options> = { |