#!/usr/bin/env fish

set msg $argv[1]
if test -z "$msg"
    set msg "Are you sure?"
end

switch (printf "yes\nno" | fuzzel -d -p "$msg " --minimal-lines)
    case yes
        exit 0
    case no
        exit 1
    case '*'
        exit 2 # cancelled
end
