Builtin plugins
Error Plugin
Advanced error handling plugin with error recovery and reporting
Error Plugin
The Error Plugin provides intelligent error handling for CLI applications built with Wizard. It automatically detects command not found errors and suggests similar commands using fuzzy matching, making your CLI more user-friendly.
Installation
npm install @hyperse/wizard-plugin-errorQuick Start
// @filename: @hyperse/wizard-plugin-error/dist/index.d.ts
import { } from '@hyperse/wizard';
import { } from '@hyperse/wizard-plugin-error';
const = ({
: 'my-cli',
: 'My CLI application',
: '1.0.0',
});
.(()).();API Reference
createErrorPlugin is a factory function exported by
@hyperse/wizard-plugin-error.
- ErrorPluginOptions
Prop
Type