Skip to content

Commit

Permalink
fix: update hooks.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored Mar 29, 2024
1 parent ee60e44 commit 06398de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ You can create hooks with `oclif generate hook myhook --event=init`.
* `command_not_found` - runs if a command is not found before the error is displayed
* `command_incomplete` - runs if a command is not found but it is a partial of an existing command. Only works if [flexible taxonomy](./flexible_taxonomy.md) is enabled. Useful for instances where you'd like to present a prompt with all the matching commands. See Salesforce CLI's [implementation](https://github.com/salesforcecli/cli/blob/main/src/hooks/incomplete.ts).
* `jit_plugin_not_installed` - runs if a command from a [JIT plugin](./jit_plugins.md) is executed but the plugin isn't installed yet. See Salesforce CLI's [implementation](https://github.com/salesforcecli/plugin-trust/blob/main/src/hooks/jitPluginInstall.ts).
* `preparse` - runs before flags and args are parsed and validated. Useful if you need to manipulate the input. See Salesforce CLI's [implementation](https://github.com/salesforcecli/cli/blob/main/src/hooks/preparse.ts).
* `preparse` - runs before flags and args are parsed and validated. Useful if you need to manipulate the input. See Salesforce CLI's [implementation](https://github.com/salesforcecli/cli/blob/main/src/hooks/preparse.ts). This can only be implemented by the root CLI.
* `postrun` - runs after the command only if the command finishes with no error

## Custom Events
Expand Down

0 comments on commit 06398de

Please sign in to comment.