#compdef pyb
typeset -A opt_args

_arguments -C '*:Task:->tasks' && ret=0

case "$state" in
    (tasks)

    local tasks; tasks=()

    pyb -Qt | while read TASK_LINE; do
        tasks+=( $TASK_LINE )
    done

    _describe -t tasks 'tasks' tasks && ret=0

    ;;
esac

return 1
