aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-02-10 11:01:17 -0800
committerBryan Newbold <bnewbold@archive.org>2021-02-10 11:01:17 -0800
commit6a0e0d122b70c282f28eb0aec83780f9d3edc995 (patch)
tree96e78eaceab5f933453f310a4351d13c8ef84495
parentea843b324ce3d453356bfc356fd9163336130c48 (diff)
downloadfatcat-cli-6a0e0d122b70c282f28eb0aec83780f9d3edc995.tar.gz
fatcat-cli-6a0e0d122b70c282f28eb0aec83780f9d3edc995.zip
make: completions
-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