This commit is contained in:
2024-12-30 08:39:45 +01:00
parent 7894f7d420
commit 523a58cfec
104 changed files with 191 additions and 185 deletions

46
crystallib.code-workspace Normal file
View File

@@ -0,0 +1,46 @@
{
"folders": [
{
"path": "lib"
},
{
"path": "aiprompts"
},
{
"path": "research"
},
{
"path": "examples"
},
{
"path": "cli"
},
{
"path": "manual"
}
],
"settings": {
"extensions.ignoreRecommendations": false
},
"extensions": {
"unwantedRecommendations": [],
"recommendations": [
"saoudrizwan.claude-dev",
"shakram02.bash-beautify",
"ms-vsliveshare.vsliveshare",
"yzhang.markdown-all-in-one",
"elesoho.vscode-markdown-paste-image",
"ms-vscode-remote.remote-ssh",
"ms-vscode-remote.remote-ssh-edit",
"ms-vscode.remote-explorer",
"ms-vscode.remote-repositories",
"charliermarsh.ruff",
"bmalehorn.shell-syntax",
"qwtel.sqlite-viewer",
"simonsiefke.svg-preview",
"gruntfuggly.todo-tree",
"vosca.vscode-v-analyzer",
"tomoki1207.pdf"
]
}
}

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.builder import freeflowuniverse.herolib.builder
import freeflowuniverse.herolib.core.pathlib import freeflowuniverse.herolib.core.pathlib

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.builder import freeflowuniverse.herolib.builder
import freeflowuniverse.herolib.core.pathlib import freeflowuniverse.herolib.core.pathlib

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.builder import freeflowuniverse.herolib.builder
import freeflowuniverse.herolib.core.pathlib import freeflowuniverse.herolib.core.pathlib

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.core.base import freeflowuniverse.herolib.core.base

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.core.pathlib import freeflowuniverse.herolib.core.pathlib
import freeflowuniverse.herolib.core.base import freeflowuniverse.herolib.core.base

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.core.base import freeflowuniverse.herolib.core.base
import freeflowuniverse.herolib.develop.gittools import freeflowuniverse.herolib.develop.gittools

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import os import os
import freeflowuniverse.herolib.core.codeparser import freeflowuniverse.herolib.core.codeparser

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.data.dbfs import freeflowuniverse.herolib.data.dbfs
import time import time

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.core.generator.installer import freeflowuniverse.herolib.core.generator.installer

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import os import os
import json import json

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.core.pathlib import freeflowuniverse.herolib.core.pathlib
import os import os

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.core.pathlib import freeflowuniverse.herolib.core.pathlib
import os import os

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.core.pathlib import freeflowuniverse.herolib.core.pathlib
import freeflowuniverse.herolib.data.paramsparser import freeflowuniverse.herolib.data.paramsparser

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.core.pathlib import freeflowuniverse.herolib.core.pathlib
import os import os

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.crypt.secrets import freeflowuniverse.herolib.crypt.secrets

View File

@@ -1,20 +0,0 @@
{
"folders": [
{
"path": "../lib"
},
{
"path": "../aiprompts"
},
{
"path": "../research"
},
{
"path": "../examples"
},
{
"path": "../cli"
}
],
"settings": {}
}

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.data.encoder import freeflowuniverse.herolib.data.encoder
import crypto.ed25519 import crypto.ed25519

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.crypt.aes_symmetric { decrypt, encrypt } import freeflowuniverse.herolib.crypt.aes_symmetric { decrypt, encrypt }
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console
@@ -13,4 +13,4 @@ console.print_debug('${encrypted}')
decrypted := decrypt(encrypted, secret) decrypted := decrypt(encrypted, secret)
console.print_debug('${decrypted}') console.print_debug('${decrypted}')
assert decrypted == msg assert decrypted == msg

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.data.encoderhero import freeflowuniverse.herolib.data.encoderhero
import freeflowuniverse.herolib.core.base import freeflowuniverse.herolib.core.base

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.core.playbook import freeflowuniverse.herolib.core.playbook
import freeflowuniverse.herolib.data.paramsparser import freeflowuniverse.herolib.data.paramsparser
@@ -28,4 +28,4 @@ this is a text \${aVAR}
' '
// println(txt) // println(txt)
// println(params.regexfind(txt)) // println(params.regexfind(txt))

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.data.paramsparser { Params, parse } import freeflowuniverse.herolib.data.paramsparser { Params, parse }
import time { Duration, sleep } import time { Duration, sleep }

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.data.resp import freeflowuniverse.herolib.data.resp
import crypto.ed25519 import crypto.ed25519

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -cg -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import os import os
import freeflowuniverse.herolib.develop.gittools import freeflowuniverse.herolib.develop.gittools
@@ -22,4 +22,4 @@ mypath := gs.do(
)! )!
timer := performance.new('gittools') timer := performance.new('gittools')
timer.timeline() timer.timeline()

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -cg -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.develop.gittools import freeflowuniverse.herolib.develop.gittools
import freeflowuniverse.herolib.osal import freeflowuniverse.herolib.osal

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.develop.gittools import freeflowuniverse.herolib.develop.gittools
import freeflowuniverse.herolib.osal import freeflowuniverse.herolib.osal
@@ -101,4 +101,4 @@ repo.push(push_tag: true) or {
println('Check if the created tag exists...') println('Check if the created tag exists...')
repo.is_tag_exists(tag_name: tag_name) or { repo.is_tag_exists(tag_name: tag_name) or {
println("Tag isn't exists.") println("Tag isn't exists.")
} }

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import os import os
import freeflowuniverse.herolib.osal import freeflowuniverse.herolib.osal

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.sysadmin.startupmanager import freeflowuniverse.herolib.sysadmin.startupmanager
import os import os

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.develop.luadns import freeflowuniverse.herolib.develop.luadns
@@ -25,4 +25,4 @@ fn main() {
for config in lua_dns.configs { for config in lua_dns.configs {
println(config) println(config)
} }
} }

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.clients.openai as op import freeflowuniverse.herolib.clients.openai as op
@@ -73,4 +73,3 @@ embeddings := ai_cli.create_embeddings(
model: op.EmbeddingModel.text_embedding_ada model: op.EmbeddingModel.text_embedding_ada
)! )!
print(embeddings) print(embeddings)

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.hero.bootstrap import freeflowuniverse.herolib.hero.bootstrap
mut al:=bootstrap.new_alpine_loader() mut al:=bootstrap.new_alpine_loader()
al.start()! al.start()!

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env -S v -w -n -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.hero.generation import freeflowuniverse.herolib.hero.generation
generation.generate_actor( generation.generate_actor(
name: 'Example' name: 'Example'
) )

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env -S v -w -n -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.hero.generation import freeflowuniverse.herolib.hero.generation
generation.generate_actor( generation.generate_actor(
name: 'Example' name: 'Example'
interfaces: [] interfaces: []
) )

View File

@@ -1 +1 @@
#!/usr/bin/env -S v -w -n -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run

View File

@@ -1 +1 @@
#!/usr/bin/env -S v -w -n -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env -S v -w -n -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import example_actor import example_actor
example_actor.run_interface_procedure() example_actor.run_interface_procedure()

View File

@@ -1 +1 @@
#!/usr/bin/env -S v -w -n -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -w -n -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import os import os
import time import time
@@ -212,4 +212,4 @@ struct NewUser {
username string username string
email string email string
phone string phone string
} }

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -w -n -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import os import os
import time import time
@@ -138,4 +138,4 @@ fn (mut handler Handler) handle(request Request) !Response {
status: http.Status.ok // Assuming success if no error status: http.Status.ok // Assuming success if no error
body: procedure_response.result body: procedure_response.result
} }
} }

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.sysadmintools.actrunner import freeflowuniverse.herolib.installers.sysadmintools.actrunner
import freeflowuniverse.herolib.installers.virt.herocontainers import freeflowuniverse.herolib.installers.virt.herocontainers
actrunner.install()! actrunner.install()!
//herocontainers.start()! //herocontainers.start()!

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.fediverse.conduit import freeflowuniverse.herolib.installers.fediverse.conduit
conduit.install()! conduit.install()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.infra.coredns as coredns_installer import freeflowuniverse.herolib.installers.infra.coredns as coredns_installer

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env -S v -cg -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
// #!/usr/bin/env -S v -n -cg -w -enable-globals run
import freeflowuniverse.herolib.installers.sysadmintools.daguserver import freeflowuniverse.herolib.installers.sysadmintools.daguserver
import freeflowuniverse.herolib.installers.infra.zinit import freeflowuniverse.herolib.installers.infra.zinit

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.sysadmintools.daguserver import freeflowuniverse.herolib.installers.sysadmintools.daguserver

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.gitea import freeflowuniverse.herolib.installers.gitea

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.threefold.griddriver import freeflowuniverse.herolib.installers.threefold.griddriver
mut griddriver_installer := griddriver.get()! mut griddriver_installer := griddriver.get()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.lang.vlang import freeflowuniverse.herolib.installers.lang.vlang
import freeflowuniverse.herolib.installers.sysadmintools.daguserver import freeflowuniverse.herolib.installers.sysadmintools.daguserver
@@ -6,4 +6,3 @@ import freeflowuniverse.herolib.installers.sysadmintools.b2 as b2_installer
vlang.v_analyzer_install()! vlang.v_analyzer_install()!
daguserver.new()! //will install & start a daguserver daguserver.new()! //will install & start a daguserver

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -cg -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.osal import freeflowuniverse.herolib.osal
import freeflowuniverse.herolib.installers.lang.golang import freeflowuniverse.herolib.installers.lang.golang
@@ -12,4 +12,4 @@ mut buildah_installer0:= buildah_installer.get()!
//podman_installer0.destroy()! //will remove all //podman_installer0.destroy()! //will remove all
podman_installer0.install()! podman_installer0.install()!
buildah_installer0.install()! buildah_installer0.install()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.data.dbfs import freeflowuniverse.herolib.data.dbfs
import freeflowuniverse.herolib.installers.lang.vlang import freeflowuniverse.herolib.installers.lang.vlang
@@ -26,4 +26,4 @@ mycelium_installer.install()!
vlang.v_analyzer_install()! vlang.v_analyzer_install()!
// b2_installer.install()! // b2_installer.install()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -cg -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.net.mycelium as mycelium_installer import freeflowuniverse.herolib.installers.net.mycelium as mycelium_installer
mycelium_installer.start()! mycelium_installer.start()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -cg -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import time import time
@@ -12,4 +12,4 @@ db.start()!
// db.db_create('my_new_db')! // db.db_create('my_new_db')!
// db.stop()! // db.stop()!
// db.start()! // db.start()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.virt.youki import freeflowuniverse.herolib.installers.virt.youki
@@ -6,5 +6,3 @@ import freeflowuniverse.herolib.installers.virt.youki
mut youki_installer:= youki.get()! mut youki_installer:= youki.get()!
youki_installer.install()! youki_installer.install()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.lang.python import freeflowuniverse.herolib.lang.python
@@ -31,4 +31,3 @@ for i in 0..5{
person:=json.decode(Person,res)! person:=json.decode(Person,res)!
println(person) println(person)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.osal { download } import freeflowuniverse.herolib.osal { download }

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.osal { ping } import freeflowuniverse.herolib.osal { ping }
assert ping(address: '338.8.8.8')! == .unknownhost assert ping(address: '338.8.8.8')! == .unknownhost
assert ping(address: '8.8.8.8')! == .ok assert ping(address: '8.8.8.8')! == .ok
assert ping(address: '18.8.8.8')! == .timeout assert ping(address: '18.8.8.8')! == .timeout

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.builder import freeflowuniverse.herolib.builder
@@ -8,4 +8,4 @@ import freeflowuniverse.herolib.builder
builder.portforward_to_local(name:"holo1",address:"[302:1d81:cef8:3049:fbe1:69ba:bd8c:52ec]",remote_port:45579)! builder.portforward_to_local(name:"holo1",address:"[302:1d81:cef8:3049:fbe1:69ba:bd8c:52ec]",remote_port:45579)!
builder.portforward_to_local(name:"holo2",address:"[302:1d81:cef8:3049:fbe1:69ba:bd8c:52ec]",remote_port:34639)! builder.portforward_to_local(name:"holo2",address:"[302:1d81:cef8:3049:fbe1:69ba:bd8c:52ec]",remote_port:34639)!
builder.portforward_to_local(name:"holoui",address:"[302:1d81:cef8:3049:fbe1:69ba:bd8c:52ec]",remote_port:8282)! builder.portforward_to_local(name:"holoui",address:"[302:1d81:cef8:3049:fbe1:69ba:bd8c:52ec]",remote_port:8282)!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.infra.zinit as zinitinstaller import freeflowuniverse.herolib.installers.infra.zinit as zinitinstaller
import freeflowuniverse.herolib.sysadmin.startupmanager import freeflowuniverse.herolib.sysadmin.startupmanager
@@ -23,4 +23,4 @@ sm.new(
println(sm.list()!) println(sm.list()!)
assert sm.exists(name)! assert sm.exists(name)!
sm.delete(name)! sm.delete(name)!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -cg -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.osal.systemd import freeflowuniverse.herolib.osal.systemd

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.osal.ufw import freeflowuniverse.herolib.osal.ufw
@@ -38,4 +38,4 @@ ruleset.deny(
ufw.apply(ruleset) or { panic('Error applying ruleset: ${err}') } ufw.apply(ruleset) or { panic('Error applying ruleset: ${err}') }
ufw.reset()! ufw.reset()!
ufw.enable()! ufw.enable()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.osal.ufw import freeflowuniverse.herolib.osal.ufw
import freeflowuniverse.herolib.core.playbook import freeflowuniverse.herolib.core.playbook
@@ -37,4 +37,3 @@ heroscript := "
mut plbook := playbook.new(text: heroscript)! mut plbook := playbook.new(text: heroscript)!
rs:=ufw.play(mut plbook)! rs:=ufw.play(mut plbook)!
println(rs) println(rs)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import os import os
import time import time

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid.models import freeflowuniverse.herolib.threefold.grid.models
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid
import freeflowuniverse.herolib.threefold.grid.models import freeflowuniverse.herolib.threefold.grid.models

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid
import freeflowuniverse.herolib.threefold.grid.models import freeflowuniverse.herolib.threefold.grid.models

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid.models import freeflowuniverse.herolib.threefold.grid.models
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid.models import freeflowuniverse.herolib.threefold.grid.models
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid.models import freeflowuniverse.herolib.threefold.grid.models
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid.models import freeflowuniverse.herolib.threefold.grid.models
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid.models import freeflowuniverse.herolib.threefold.grid.models
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid
@@ -215,4 +215,4 @@ gateway_dl := deployer.get_deployment(gw_node_contract_id, gw_node_id) or {
} }
gw_res := get_gateway_name_result(gateway_dl)! gw_res := get_gateway_name_result(gateway_dl)!
logger.info('gateway: ${gw_res}') logger.info('gateway: ${gw_res}')

View File

@@ -1,18 +1,26 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid as tfgrid
import log import log
// Mock implementation for testing
struct MockDeployer {
mut:
logger &log.Log
}
fn (mut d MockDeployer) cancel_contract(contract_id u64) ! {
d.logger.info('Mock: Canceling contract ${contract_id}')
}
fn test_cancel_contract(contract_id u64) ! { fn test_cancel_contract(contract_id u64) ! {
mut logger := &log.Log{} mut logger := &log.Log{}
logger.set_level(.debug) logger.set_level(.debug)
mnemonics := tfgrid.get_mnemonics()! mut deployer := MockDeployer{
chain_network := tfgrid.ChainNetwork.dev // User your desired network logger: logger
mut deployer := tfgrid.new_deployer(mnemonics, chain_network, mut logger)! }
deployer.client.cancel_contract(contract_id)! deployer.cancel_contract(contract_id)!
deployer.logger.info('contract ${contract_id} is canceled')
} }
fn main() { fn main() {
test_cancel_contract(u64(119497)) or { println('error happened: ${err}') } test_cancel_contract(u64(119497)) or { println('error happened: ${err}') }
} }

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid
import log import log

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid
@@ -34,4 +34,4 @@ cfg = cl.config()!
println(cfg) println(cfg)
// TO CONFIGURE NEW // TO CONFIGURE NEW
// cl.config_delete()! // cl.config_delete()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid
import freeflowuniverse.herolib.threefold.griddriver { Client } import freeflowuniverse.herolib.threefold.griddriver { Client }

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.gridproxy import freeflowuniverse.herolib.threefold.gridproxy
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid
import freeflowuniverse.herolib.threefold.gridproxy import freeflowuniverse.herolib.threefold.gridproxy
@@ -46,4 +46,3 @@ fn get_my_contracts_example() ! {
get_contracts_example()! get_contracts_example()!
get_contract_by_id_example(u64(49268))! get_contract_by_id_example(u64(49268))!
get_my_contracts_example()! get_my_contracts_example()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.gridproxy import freeflowuniverse.herolib.threefold.gridproxy
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console
@@ -27,4 +27,4 @@ fn get_farm_by_name_example(farm_name string) ! {
} }
get_farms_example()! get_farms_example()!
get_farm_by_name_example("freefarm")! get_farm_by_name_example("freefarm")!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.gridproxy import freeflowuniverse.herolib.threefold.gridproxy
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console
@@ -27,4 +27,4 @@ fn get_gateway_by_id_example(node_id u64) ! {
} }
get_gateway_nodes_example()! get_gateway_nodes_example()!
get_gateway_by_id_example(u64(11))! get_gateway_by_id_example(u64(11))!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.gridproxy import freeflowuniverse.herolib.threefold.gridproxy
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console
@@ -28,4 +28,3 @@ console.print_debug('${contracts}')
// get grid stats // get grid stats
stats := gp_client.get_stats()! stats := gp_client.get_stats()!
console.print_debug('${stats}') console.print_debug('${stats}')

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.gridproxy import freeflowuniverse.herolib.threefold.gridproxy
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console
@@ -92,4 +92,4 @@ get_node_by_id_example(u64(11))!
get_node_stats_by_id_example(u64(11))! get_node_stats_by_id_example(u64(11))!
get_node_by_available_capacity_example()! get_node_by_available_capacity_example()!
get_node_by_city_country_example()! get_node_by_city_country_example()!
get_node_box_poc_example()! get_node_box_poc_example()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.gridproxy import freeflowuniverse.herolib.threefold.gridproxy
import freeflowuniverse.herolib.threefold.gridproxy.model { NodeStatus } import freeflowuniverse.herolib.threefold.gridproxy.model { NodeStatus }

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.gridproxy import freeflowuniverse.herolib.threefold.gridproxy
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/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.threefold.tfrobot
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console
@@ -61,7 +61,3 @@ for vm in tfrobot.vms_get('holotest')!{
r:=node.exec(cmd:"ls /")! r:=node.exec(cmd:"ls /")!
println(r) println(r)
} }

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/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.threefold.tfrobot
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/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.threefold.tfrobot
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/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.threefold.tfrobot
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console
@@ -26,4 +26,3 @@ tasks.step_add(
vm.tasks_run(tasks)! vm.tasks_run(tasks)!
vm.tasks_see(tasks)! vm.tasks_see(tasks)!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.grid.models import freeflowuniverse.herolib.threefold.grid.models
import freeflowuniverse.herolib.threefold.grid as tfgrid import freeflowuniverse.herolib.threefold.grid as tfgrid
@@ -384,4 +384,4 @@ fn execute_remote_script(mycelium_ip string, script_name string) bool {
logger.error('Remote script execution failed with exit code: ${run_result.exit_code}') logger.error('Remote script execution failed with exit code: ${run_result.exit_code}')
return false return false
} }
} }

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals -cg run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.threefold.gridproxy import freeflowuniverse.herolib.threefold.gridproxy
import freeflowuniverse.herolib.threefold.tfgrid3deployer import freeflowuniverse.herolib.threefold.tfgrid3deployer

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.osal import freeflowuniverse.herolib.osal
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console
@@ -11,4 +11,3 @@ console.silent_unset()
println("now I will get output") println("now I will get output")
osal.exec(cmd: 'ls /',debug:true)! osal.exec(cmd: 'ls /',debug:true)!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.virt.docker import freeflowuniverse.herolib.virt.docker

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.virt.docker import freeflowuniverse.herolib.virt.docker
@@ -7,4 +7,3 @@ mut engine := docker.new()!
engine.reset_all()! engine.reset_all()!
println(engine) println(engine)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.virt.docker import freeflowuniverse.herolib.virt.docker

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.virt.docker import freeflowuniverse.herolib.virt.docker
import os import os
@@ -24,4 +24,3 @@ mut presearch_updater := recipe.service_new(
presearch_updater.volume_add('/var/run/docker.sock', '/var/run/docker.sock')! presearch_updater.volume_add('/var/run/docker.sock', '/var/run/docker.sock')!
recipe.start()! recipe.start()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.virt.docker import freeflowuniverse.herolib.virt.docker
mut engine := docker.new(prefix: '', localonly: true)! mut engine := docker.new(prefix: '', localonly: true)!
@@ -38,4 +38,3 @@ recipe.add_cmd(cmd: '/bin/bash -c /app/packages/dashboard/scripts/build-env.sh')
recipe.add_entrypoint(cmd: 'nginx')! recipe.add_entrypoint(cmd: 'nginx')!
recipe.build(false)! recipe.build(false)!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.virt.hetzner import freeflowuniverse.herolib.virt.hetzner
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console
@@ -40,4 +40,3 @@ mut n := b.node_new(ipaddr: serverinfo.server_ip)!
// mut ks:=cl.keys_get()! // mut ks:=cl.keys_get()!
// println(ks) // println(ks)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.virt.lima import freeflowuniverse.herolib.virt.lima
import freeflowuniverse.herolib.core.texttools import freeflowuniverse.herolib.core.texttools
@@ -24,4 +24,4 @@ println(vm)
// vm.install_hero()! // vm.install_hero()!
// console.print_debug_title("MYVM", vm.str()) // console.print_debug_title("MYVM", vm.str())

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.virt.herocontainers import freeflowuniverse.herolib.virt.herocontainers
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console
@@ -31,5 +31,3 @@ mut builder_gorust := engine.builder_go_rust()!
builder_gorust.shell()! builder_gorust.shell()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.virt.herocontainers import freeflowuniverse.herolib.virt.herocontainers
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console
@@ -39,5 +39,3 @@ mybuildcontainer.run(cmd:"installers -n heroweb",runtime:.herocmd)!
//mut b2:=pm.builder_get("builderv")! //mut b2:=pm.builder_get("builderv")!
//b2.shell()! //b2.shell()!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.virt.herocontainers import freeflowuniverse.herolib.virt.herocontainers
import freeflowuniverse.herolib.ui.console import freeflowuniverse.herolib.ui.console

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import os import os
import flag import flag
@@ -31,4 +31,3 @@ mut mybuildcontainer := pm.builder_get("builder_heroweb")!
mybuildcontainer.run(cmd:"installers -n heroweb",runtime:.herocmd)! mybuildcontainer.run(cmd:"installers -n heroweb",runtime:.herocmd)!
mybuildcontainer.run(cmd: 'hero mdbook -u ${url} -o', runtime: .bash)! mybuildcontainer.run(cmd: 'hero mdbook -u ${url} -o', runtime: .bash)!

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run #!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.virt.cloudhypervisor as cloudhypervisor_installer import freeflowuniverse.herolib.installers.virt.cloudhypervisor as cloudhypervisor_installer
@@ -20,4 +20,4 @@ ci.install(reset:true)!
// mut vm:=virtmanager.vm_get('ubuntu')! // mut vm:=virtmanager.vm_get('ubuntu')!
// vm.install_hero()! // vm.install_hero()!
// console.print_debug_title("MYVM", vm.str()) // console.print_debug_title("MYVM", vm.str())

Some files were not shown because too many files have changed in this diff Show More