From 6b3236715b56450fdfdebed0927d96b72730d3d2 Mon Sep 17 00:00:00 2001 From: mike <98623181+1Kinoti@users.noreply.github.com> Date: Sun, 16 Apr 2023 04:39:52 +0300 Subject: [PATCH] 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) --- toolkit.nu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toolkit.nu b/toolkit.nu index d4ff586010..3a62a1495c 100644 --- a/toolkit.nu +++ b/toolkit.nu @@ -231,16 +231,16 @@ export def "check pr" [ # set up git hooks to run: # - `toolkit fmt --check --verbose` on `git commit` # - `toolkit fmt --check --verbose` and `toolkit clippy --verbose` on `git push` -export def set-git-hooks [] { +export def setup-git-hooks [] { if $nu.os-info.name == windows { return (print "This git hook isn't available on Windows. Sorry!") } print "This command will change your local git configuration and hence modify your development workflow. Are you sure you want to continue? [y]" if (input) == "y" { - print $"running ('toolkit set-git-hooks' | pretty-print-command)" + print $"running ('toolkit setup-git-hooks' | pretty-print-command)" git config --local core.hooksPath .githooks } else { - print $"aborting ('toolkit set-git-hooks' | pretty-print-command)" + print $"aborting ('toolkit setup-git-hooks' | pretty-print-command)" } }