Improve completions workflow

This commit is contained in:
Tobias Reisinger 2024-01-12 02:28:44 +01:00
parent 031bb45eeb
commit 6c2eeb4c9b
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 15 additions and 6 deletions

View file

@ -14,13 +14,9 @@ generate: get-target output-dir
generate-upgrade: get-target output-dir
BASHLY_SOURCE_DIR=$(TARGET) bashly generate --upgrade
completions: generate-upgrade
BASHLY_SOURCE_DIR=$(TARGET) bashly add --force completions_script ./output/_$(TARGET)
docs: generate
BASHLY_SOURCE_DIR=$(TARGET) bashly render :mandoc ./output/man1
deploy: completions docs
deploy: generate docs
cp -f ./output/$(TARGET) ~/.local/bin/
cp -f ./output/_$(TARGET) ~/.config/completionsrc.d/
cp -f ./output/man1/$(TARGET)*.1 ~/.local/share/man/man1/