Properties
afterExecute
afterExecute: ((payload: { result: unknown; setResult: ((result: unknown) => void); state: State<unknown, OptionsConfig>; }) => MaybePromise<void>) afterParse
afterParse: ((payload: { context: Context<OptionsConfig>; parsedOptions: {}; setParsedOptions: ((optionValues: {}) => void); }) => MaybePromise<void>) beforeEnd
beforeEnd: ((payload: { data: unknown; setData: ((data: unknown) => void); state: State<unknown, OptionsConfig>; }) => MaybePromise<void>) beforeExecute
beforeExecute: ((payload: { initialData: unknown; setInitialData: ((data: unknown) => void); setResultAndSkip: ((result: unknown) => void); skip: (() => void); state: State<unknown, OptionsConfig>; }) => MaybePromise<void>) beforeParse
beforeParse: ((payload: { commandString: string | string[]; context: Context<OptionsConfig>; optionsConfig: OptionsConfig; setParsedOptionsAndSkip: ((optionValues: {}) => void); setParseFn: ((parseFn: ParseCommandFn) => void); skip: (() => void); }) => MaybePromise<void>) beforeStateChange
beforeStateChange: ((payload: { changes: Partial<NextState>; setChanges: ((state: Partial<NextState>) => void); skip: (() => void); state: State<unknown, OptionsConfig>; }) => MaybePromise<void>) error
error: ((payload: { context: Context<OptionsConfig>; error: unknown; ignore: (() => void); setError: ((error: unknown) => void); }) => MaybePromise<void>) exit
exit: ((payload: { cancel: (() => void); code: number; context: Context<OptionsConfig>; message?: any; setCode: ((code: number) => void); setMessage: ((message: any) => void); }) => MaybePromise<void>)
The hooks that can be registered and called to modify the behavior of the CLI, keyed by event name, listed in the order they are called.