provisioning-core/nulib/cli/handlers/utilities/ssh.nu

13 lines
451 B
Text
Raw Permalink Normal View History

# SSH Command Handler
# Domain: SSH operations into configured servers
use orchestration/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
}