# SSH Command Handler
# Domain: SSH operations into configured servers

use ../../../servers/ssh.nu *
# REMOVED: use ../../../lib_provisioning * - causes circular import

# SSH command handler - SSH into server
export def handle_ssh [flags: record] {
    let curr_settings = (find_get_settings --infra $flags.infra --settings $flags.settings $flags.include_notuse)
    rm -rf $curr_settings.wk_path
    server_ssh $curr_settings "" "pub" false
}
