29 lines
587 B
GLSL
Executable File
29 lines
587 B
GLSL
Executable File
#!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
|
|
|
|
import freeflowuniverse.herolib.threefold.tfrobot
|
|
import freeflowuniverse.herolib.ui.console
|
|
|
|
console.print_header("Tasker Example 2.")
|
|
|
|
mut vm := tfrobot.vm_get('holotest','test1')!
|
|
|
|
//get a set of tasks as we want to execute on the vm
|
|
mut tasks:=vm.tasks_new(name:'sysadmin')
|
|
|
|
tasks.step_add(
|
|
nr:1
|
|
name: 'ls'
|
|
command: 'ls /'
|
|
)!
|
|
|
|
tasks.step_add(
|
|
nr:2
|
|
name: 'install something'
|
|
command: 'nix-env --install mc'
|
|
depends: "1"
|
|
)!
|
|
|
|
|
|
vm.tasks_run(tasks)!
|
|
vm.tasks_see(tasks)!
|