# shellcheck shell=dash
___x_cmd_theme_comp_transient(){
    local op="$1"
    case "$op" in
        time) ___x_cmd_theme_comp_transient_time "$@"
        ;;
    esac
}

if [ -n "$ZSH_VERSION" ]; then

___x_cmd_theme_comp_transient_time(){
    print -v x_ -P "%*"
}

elif [ -n "$BASH_VERSION" ]; then

# TODO: survey on bash5
___x_cmd_theme_comp_transient_time(){
    x_="$(command date +"%H:%M:%S")"
}

else

___x_cmd_theme_comp_transient_time(){
    x_="$(command date +"%H:%M:%S")"
}

fi

