Plugins
oneRepo features a plugin interface to enable shared and reusable commands and functionality into the one
command-line interface.
Featured plugins
Section titled Featured plugins Docgen Generate Markdown documentation for the oneRepo CLI in your repository.
![](/_astro/eslint.BQkDSX-N_87lol.webp)
![](/_astro/jest.BcbN2qwA_Z1vGfuj.webp)
Performance Writer Example plugin for monitoring performance of commands run in your repository.
![](/_astro/prettier.XVYmgOxV_2rXzUu.webp)
![](/_astro/typescript.A1sPtbBu_trykT.webp)
![](/_astro/vitest.CZYhrj1Q_6VGpv.webp)
Writing plugins
Section titled Writing pluginsPlugins are objects comprised of three possible hooks.
Key | Type | Description |
---|---|---|
startup | (argv) => Promise<void> | <void> | Run a function before any and all commands, after argument parsing. |
shutdown | (argv) => Promise<void> | <void> | Run a function after any and all commands, after argument parsing. |
yargs | (yargs, visitor) => Yargs | A function that is given the CLI’s Yargs instance. Useful for adding custom commands and middleware. |