aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b231d32..985a327 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,11 @@ fmt: ## Run syntax re-formatting
build: ## Build
cargo build
+.PHONY: completions
+completions: build ## generate shell completions
+ ./target/debug/fatcat-cli --shell-completions bash status > extra/fatcat-cli.bash_completions
+ ./target/debug/fatcat-cli --shell-completions bash status > extra/fatcat-cli.zsh_completions
+
extra/fatcat-cli.1: extra/fatcat-cli.1.scdoc
scdoc < extra/fatcat-cli.1.scdoc > extra/fatcat-cli.1