The core hooks interface that defines lifecycle events for the CLI execution process. Hooks are called in sequential order as listed below.
This hook is triggered by both state.next() calls and the initial state.start() call, which internally uses state.next().
state.next()
state.start()
state.end()
Called whenever a plugin or command intends to exit the process via context.exit().
context.exit()
Called whenever an error is thrown.
The core hooks interface that defines lifecycle events for the CLI execution process. Hooks are called in sequential order as listed below.