Files
herolib/examples/builder/simple_ip4.vsh
2025-10-12 12:30:19 +03:00

18 lines
490 B
GLSL
Executable File

#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
import incubaid.herolib.builder
import incubaid.herolib.core.pathlib
import os
mut b := builder.new()!
mut n := b.node_new(ipaddr: 'root@51.195.61.5')!
// mut n := b.node_new(ipaddr: 'info.ourworld.tf')!
println(n)
r := n.exec(cmd: 'ls /')!
println(r)
// n.upload(source: myexamplepath, dest: '/tmp/myexamplepath2')!
// n.download(source: '/tmp/myexamplepath2', dest: '/tmp/myexamplepath2', delete: true)!