]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager: duplicit 'shell-completion' directory removed
authorAleš Mrázek <ales.mrazek@nic.cz>
Fri, 30 Sep 2022 12:58:03 +0000 (14:58 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Tue, 10 Jan 2023 18:57:14 +0000 (19:57 +0100)
etc/shell-completion/kresctl.bash [deleted file]
etc/shell-completion/kresctl.fish [deleted file]
etc/shell-completion/meson.build [deleted file]

diff --git a/etc/shell-completion/kresctl.bash b/etc/shell-completion/kresctl.bash
deleted file mode 100644 (file)
index 7363913..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#/usr/bin/env bash
-
-# completion function for the kresctl
-_kresctl_completion() {
-    local cur prev opts
-    COMPREPLY=()
-    cur="${COMP_WORDS[COMP_CWORD]}"
-    prev="${COMP_WORDS[COMP_CWORD-1]}"
-
-    # get options
-    opts=$(kresctl completion --bash "${COMP_WORDS}")
-
-    if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
-    COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
-    return 0
-    fi
-
-    return 0
-}
-
-# 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
diff --git a/etc/shell-completion/kresctl.fish b/etc/shell-completion/kresctl.fish
deleted file mode 100644 (file)
index 8fc75a8..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-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
diff --git a/etc/shell-completion/meson.build b/etc/shell-completion/meson.build
deleted file mode 100644 (file)
index 64b1996..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-# Install kresctl completion for bash
-install_data(
-  sources: 'kresctl.bash',
-  rename: 'kresctl',
-  install_dir: completions_dir / 'bash-completion' / 'completions',
-)
-
-# Install kresctl completion for fish
-install_data(
-  sources: 'kresctl.fish',
-  install_dir: completions_dir / 'fish' / 'vendor_completions.d',
-)