Skip to content

Commit 6b32367

Browse files
authored
rename toolkit's set-git-hooks to setup-git-hooks (#8897)
# Description this pr renames toolkit's `set-git-hooks` to `setup-git-hooks` to match [CONTRIBUTING.md](https://github.com/nushell/nushell/blob/cbedc8403f6fc58896069d6dae59f2e2a5725036/CONTRIBUTING.md?plain=1#L112)
1 parent cbedc84 commit 6b32367

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

toolkit.nu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,16 @@ export def "check pr" [
231231
# set up git hooks to run:
232232
# - `toolkit fmt --check --verbose` on `git commit`
233233
# - `toolkit fmt --check --verbose` and `toolkit clippy --verbose` on `git push`
234-
export def set-git-hooks [] {
234+
export def setup-git-hooks [] {
235235
if $nu.os-info.name == windows {
236236
return (print "This git hook isn't available on Windows. Sorry!")
237237
}
238238

239239
print "This command will change your local git configuration and hence modify your development workflow. Are you sure you want to continue? [y]"
240240
if (input) == "y" {
241-
print $"running ('toolkit set-git-hooks' | pretty-print-command)"
241+
print $"running ('toolkit setup-git-hooks' | pretty-print-command)"
242242
git config --local core.hooksPath .githooks
243243
} else {
244-
print $"aborting ('toolkit set-git-hooks' | pretty-print-command)"
244+
print $"aborting ('toolkit setup-git-hooks' | pretty-print-command)"
245245
}
246246
}

0 commit comments

Comments
 (0)