From 6a0e0d122b70c282f28eb0aec83780f9d3edc995 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 10 Feb 2021 11:01:17 -0800 Subject: make: completions --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3