etc/knot-resolver/config.yml
usr/lib/systemd/system/knot-resolver.service
usr/share/bash-completion/completions/kresctl
-usr/share/fish/vendor_completions.d/kresctl.fish
+usr/share/fish/completions/kresctl.fish
DESTDIR="${PWD}/debian/tmp" ninja -v -C build_deb install
dh_auto_install --buildsystem=pybuild --sourcedirectory manager
install -m 644 -D $(CURDIR)/manager/etc/knot-resolver/config.yml $(CURDIR)/debian/tmp/etc/knot-resolver/config.yml
- install -m 644 -D $(CURDIR)/manager/shell-completion/kresctl.bash $(CURDIR)/debian/tmp/usr/share/bash-completion/completions/kresctl
- install -m 644 -D $(CURDIR)/manager/shell-completion/kresctl.fish $(CURDIR)/debian/tmp/usr/share/fish/vendor_completions.d/kresctl.fish
+ install -m 644 -D $(CURDIR)/manager/shell-completion/client.bash $(CURDIR)/debian/tmp/usr/share/bash-completion/completions/kresctl
+ install -m 644 -D $(CURDIR)/manager/shell-completion/client.fish $(CURDIR)/debian/tmp/usr/share/fish/completions/kresctl.fish
override_dh_auto_test:
meson test -C build_deb
pushd manager
%py3_install
install -m 644 -D etc/knot-resolver/config.yml %{buildroot}%{_sysconfdir}/knot-resolver/config.yml
-install -m 644 -D shell-completion/kresctl.bash %{buildroot}%{_datarootdir}/bash-completion/completions/kresctl
-install -m 644 -D shell-completion/kresctl.fish %{buildroot}%{_datarootdir}/fish/vendor_completions.d/kresctl.fish
+install -m 644 -D shell-completion/client.bash %{buildroot}%{_datarootdir}/bash-completion/completions/kresctl
+install -m 644 -D shell-completion/client.fish %{buildroot}%{_datarootdir}/fish/completions/kresctl.fish
popd
%{_unitdir}/knot-resolver.service
%{_bindir}/kresctl
%{_datarootdir}/bash-completion/completions/kresctl
-%{_datarootdir}/fish/vendor_completions.d/kresctl.fish
+%{_datarootdir}/fish/completions/kresctl.fish
%changelog
* {{ now }} Jakub Ružička <jakub.ruzicka@nic.cz> - {{ version }}-{{ release }}
#/usr/bin/env bash
# completion function for the kresctl
-_kresctl_completion() {
+__kresctl_completion() {
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
}
# use the bash default completion for other arguments
-complete -o filenames -o nospace -o bashdefault -F _kresctl_completion kresctl
\ No newline at end of file
+complete -o filenames -o nospace -o bashdefault -F __kresctl_completion kresctl
\ No newline at end of file
--- /dev/null
+function __kresctl_completion
+ set -l args (commandline -pco)
+ eval command kresctl $args
+end
+
+complete -c kresctl -a '(__kresctl_completion)' -f
\ No newline at end of file
+++ /dev/null
-function __fish_git
- set -l args (commandline -pco)
- eval command kresctl $args
-end
-
-complete -c kresctl -a '(_kresctl_completion)' -f
\ No newline at end of file