OnApplicationBootstrap
onApplicationBootstrap
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.
Example
import { onApplicationBootstrap } from 'commandkit';
onApplicationBootstrap(async (commandkit) => {
// Do something with the commandkit instance
})
Signature
function onApplicationBootstrap<F extends BootstrapFunction>(fn: F): void
Parameters
fn
parameter
F