onBootstrap
onBootstrap(fn): void
Registers a bootstrap hook that will be called when the CommandKit instance is created.
This is useful for plugins that need to run some code after the CommandKit instance is fully initialized.
Note that not all commandkit dependiencs are available at this point. It is recommended to use the onApplicationBootstrap
hook instead,
if you need access to the commandkit dependencies.
```ts
import { onBootstrap } from 'commandkit';
onBootstrap(async (commandkit) => {
// Do something with the commandkit instance
})
| Parameter | Type | Optional | Description |
| ----------- | ----------- | ----------- | ----------- |
| fn | F | ❌ | The bootstrap function to register. |
- [Source](https://github.com/underctrl-io/commandkit/blob/e7997746676c2b18be64230c918cb998973d18b5/packages/commandkit/src/CommandKit.ts#L55)