Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/prek/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ pub(crate) enum Command {
InstallHooks(InstallHooksArgs),
/// Run hooks.
Run(Box<RunArgs>),
/// List available hooks.
/// List hooks configured in the current workspace.
List(ListArgs),
/// Uninstall prek from git hooks.
Uninstall(UninstallArgs),
Expand Down
2 changes: 1 addition & 1 deletion crates/prek/tests/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2171,7 +2171,7 @@ fn selectors_completion() -> Result<()> {
install Install prek as a git hook under the `.git/hooks/` directory
install-hooks Create environments for all hooks used in the config file
run Run hooks
list List available hooks
list List hooks configured in the current workspace
uninstall Uninstall prek from git hooks
validate-config Validate configuration files (prek.toml or .pre-commit-config.yaml)
validate-manifest Validate `.pre-commit-hooks.yaml` files
Expand Down
4 changes: 2 additions & 2 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ prek [OPTIONS] [HOOK|PROJECT]... [COMMAND]
<dl class="cli-reference"><dt><a href="#prek-install"><code>prek install</code></a></dt><dd><p>Install prek as a git hook under the <code>.git/hooks/</code> directory</p></dd>
<dt><a href="#prek-install-hooks"><code>prek install-hooks</code></a></dt><dd><p>Create environments for all hooks used in the config file</p></dd>
<dt><a href="#prek-run"><code>prek run</code></a></dt><dd><p>Run hooks</p></dd>
<dt><a href="#prek-list"><code>prek list</code></a></dt><dd><p>List available hooks</p></dd>
<dt><a href="#prek-list"><code>prek list</code></a></dt><dd><p>List hooks configured in the current workspace</p></dd>
<dt><a href="#prek-uninstall"><code>prek uninstall</code></a></dt><dd><p>Uninstall prek from git hooks</p></dd>
<dt><a href="#prek-validate-config"><code>prek validate-config</code></a></dt><dd><p>Validate configuration files (prek.toml or .pre-commit-config.yaml)</p></dd>
<dt><a href="#prek-validate-manifest"><code>prek validate-manifest</code></a></dt><dd><p>Validate <code>.pre-commit-hooks.yaml</code> files</p></dd>
Expand Down Expand Up @@ -264,7 +264,7 @@ prek run [OPTIONS] [HOOK|PROJECT]...

## prek list

List available hooks
List hooks configured in the current workspace

<h3 class="cli-reference">Usage</h3>

Expand Down
Loading