# shellcheck shell=dash disable=2034
xrc theme

___x_cmd_starship_use(){
    local X_help_cmd; X_help_cmd='___x_cmd help -m starship use' help:arg-null:parse
    ___x_cmd_theme_boot check_use --vendor starship "$@"
}

___x_cmd_starship_unuse(){
    local X_help_cmd; X_help_cmd='___x_cmd help -m starship unuse' help:arg:parse
    if ___x_cmd_theme_boot check_unuse --vendor starship "$@"; then
        ___x_cmd_starship_load___applyfile0
    fi
}

___x_cmd_starship_try(){
    local X_help_cmd; X_help_cmd='___x_cmd help -m starship try' help:arg-null:parse
    local name="$1"
    ___x_cmd_theme_boot check_and_apply_vendor default starship try "$name"
}

___x_cmd_starship_untry(){
    local X_help_cmd; X_help_cmd='___x_cmd help -m starship untry' help:arg:parse
    if ___x_cmd_theme_boot check_untry starship; then
        ___x_cmd_starship_load___applyfile0
        starship:info "Untry the prompt theme successfully."
        starship:info "To apply the configuration, please reopen a new shell environment."
    fi
}
