From 06398de6e60b5c3198f078a14b0aa6fef47b48ae Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Fri, 29 Mar 2024 13:40:48 -0600 Subject: [PATCH] fix: update hooks.md --- docs/hooks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hooks.md b/docs/hooks.md index 1d5249c8..81e6e85b 100644 --- a/docs/hooks.md +++ b/docs/hooks.md @@ -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