]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - shell-completion/zsh/_systemd-resolve
shell-completion: use 4 space indentation too
[thirdparty/systemd.git] / shell-completion / zsh / _systemd-resolve
index c4664422ec49fccd06d156dc09c6735f0c93eadc..07f6ad26b57a194b4115773bbba7ae480b8997b6 100644 (file)
@@ -1,6 +1,5 @@
 #compdef systemd-resolve
 # SPDX-License-Identifier: LGPL-2.1+
-
 #
 # This file is part of systemd.
 #
 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
 
 (( $+functions[_systemd-resolve_protocols] )) ||
-_systemd-resolve_protocols() {
-    local -a _protocol
-    _protocol=( $(_call_program protocol ${service} --legend=no --protocol help; echo help) )
-    _values 'protocol' "$_protocol[@]"
-}
+    _systemd-resolve_protocols() {
+        local -a _protocol
+        _protocol=( $(_call_program protocol ${service} --legend=no --protocol help; echo help) )
+        _values 'protocol' "$_protocol[@]"
+    }
 
 (( $+functions[_systemd-resolve_types] )) ||
-_systemd-resolve_types() {
-    local -a _type
-    _type=( $(_call_program type ${service} --legend=no --type help; echo help) )
-    _values 'type' "$_type[@]"
-}
+    _systemd-resolve_types() {
+        local -a _type
+        _type=( $(_call_program type ${service} --legend=no --type help; echo help) )
+        _values 'type' "$_type[@]"
+    }
 
 (( $+functions[_systemd-resolve_classes] )) ||
-_systemd-resolve_classes() {
-    local -a _class
-    _class=( $(_call_program class ${service} --legend=no --class help; echo help) )
-    _values 'class' "$_class[@]"
-}
+    _systemd-resolve_classes() {
+        local -a _class
+        _class=( $(_call_program class ${service} --legend=no --class help; echo help) )
+        _values 'class' "$_class[@]"
+    }
 
 (( $+functions[_systemd-resolve_none] )) ||
-_systemd-resolve_none() {
-    _alternative : \
-        'domain:DNS address:' \
-        'address:email address:'
-}
+    _systemd-resolve_none() {
+        _alternative : \
+                     'domain:DNS address:' \
+                     'address:email address:'
+    }
 
 _arguments \
     {-h,--help}'[Print a short help text and exit]' \