mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
dev-build/just: add manpage/completion generation
Sorry took awhile to figure this out, the one time I didn't test before pushing. Closes: https://bugs.gentoo.org/933682 Signed-off-by: Joe Kappus <joe@wt.gd>
This commit is contained in:
@@ -208,16 +208,23 @@ src_install() {
|
||||
|
||||
cargo_src_install
|
||||
|
||||
mkdir -p man
|
||||
./target/release/just --man > man/just.1
|
||||
./target/release/just --completions $shell > completions/just.$shell
|
||||
|
||||
doman man/*
|
||||
|
||||
einstalldocs
|
||||
|
||||
# bash-completion
|
||||
./target/release/just --completions bash > completions/just.bash
|
||||
newbashcomp "completions/${PN}.bash" "${PN}"
|
||||
|
||||
# zsh-completion
|
||||
./target/release/just --completions zsh > completions/just.zsh
|
||||
newzshcomp "completions/${PN}.zsh" "_${PN}"
|
||||
|
||||
# fish-completion
|
||||
./target/release/just --completions fish > completions/just.fish
|
||||
dofishcomp "completions/${PN}.fish"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user