#compdef systemextensionsctl

_systemextensionsctl() {
  local -a commands
  local ret=1
  local curcontext="$curcontext" state line

  _arguments -C \
    '-h[help]' \
    '--help[help]' \
    '1: :->command' \
    && return 0

  case $state in
    command)
      commands=(
        'developer:[on off]'
        'list:[category]'
        'reset:reset all System Extensions state'
        'uninstall:[<teamID> <bundleID>]teamID can also be -'
        'gc:garbage collect orphaned system extension(s)'
      )
      _describe -t commands 'systemextensionsctl commands' commands
      return 0
      ;;
  esac

  return
}

_systemextensionsctl "$@"
