#! /bin/bash
# vim: shiftwidth=4 tabstop=4 expandtab

LIB_DIR="$( realpath "$( dirname "$( realpath "$0" )" )/../lib/eehyp-tools" )"
if [[ -e "$LIB_DIR/common" ]]; then
    # shellcheck source=/dev/null
    source "$LIB_DIR/common"
else
    echo "Failed to load eehyp-tools common lib"
    exit 1
fi

CMD=( vm reboot "$1" )
if [[ "$2" == "--no-confirm" ]]; then
    CMD+=( "--auto" "--force" )
else
    CMD+=( "--force-confirm" )
fi

_deprecated_command "${CMD[@]}"
