#compdef bluetooth nfc wifi wwan

# zsh completion for bluetooth, nfc, wifi, wwan
# Copyright (c) 2022 Arvid Norlander and others.
# SPDX-License-Identifier: GPL-2.0-or-later

local -a args reply
args=(
    # Command word.  Don't care what that is.
    /$'[^\0]#\0'/
)

_regex_words commands "$service command" \
    'on:Switch device on' \
    'off:Switch device off' \
    'toggle:Toggle device state' \
    'cycle:Toggle device state twice' \
    '--version:Print TLP version'
args+=("$reply[@]")

_regex_arguments _tlp-radio-device "$args[@]"
_tlp-radio-device "$@"
