fix: Rename freeflowuniverse to incubaid
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env -S v -n -w -cg -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.installers.infra.coredns as coredns_installer
|
||||
import freeflowuniverse.herolib.osal.coredns
|
||||
import freeflowuniverse.herolib.core.playbook
|
||||
import incubaid.herolib.installers.infra.coredns as coredns_installer
|
||||
import incubaid.herolib.osal.coredns
|
||||
import incubaid.herolib.core.playbook
|
||||
|
||||
// coredns_installer.delete()!
|
||||
mut installer := coredns_installer.get()!
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal { download }
|
||||
import incubaid.herolib.osal { download }
|
||||
|
||||
mut p := download(
|
||||
url: 'https://cdnjs.cloudflare.com/ajax/libs/echarts/5.4.3/@name'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S v -n -w -cg -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.notifier
|
||||
import incubaid.herolib.osal.notifier
|
||||
import os
|
||||
import time
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal { ping }
|
||||
import incubaid.herolib.osal { ping }
|
||||
|
||||
assert ping(address: '338.8.8.8')! == .unknownhost
|
||||
assert ping(address: '8.8.8.8')! == .ok
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.builder
|
||||
import incubaid.herolib.builder
|
||||
|
||||
// name string @[required]
|
||||
// address string @[required]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module main
|
||||
|
||||
import freeflowuniverse.herolib.osal
|
||||
import incubaid.herolib.osal
|
||||
|
||||
fn do() ? {
|
||||
if osal.is_osx() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module main
|
||||
|
||||
import freeflowuniverse.herolib.osal
|
||||
import incubaid.herolib.osal
|
||||
|
||||
fn do() ? {
|
||||
mut pm := process.processmap_get()?
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module main
|
||||
|
||||
import freeflowuniverse.herolib.osal
|
||||
import freeflowuniverse.herolib.builder
|
||||
import incubaid.herolib.osal
|
||||
import incubaid.herolib.builder
|
||||
import os
|
||||
|
||||
const myexamplepath = os.dir(@FILE) + '/../..'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module main
|
||||
|
||||
import freeflowuniverse.herolib.osal.sandbox
|
||||
import incubaid.herolib.osal.sandbox
|
||||
import os
|
||||
|
||||
fn do() ! {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env -S v -n -w -cg -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.sshagent
|
||||
import freeflowuniverse.herolib.builder
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
import incubaid.herolib.osal.sshagent
|
||||
import incubaid.herolib.builder
|
||||
import incubaid.herolib.ui.console
|
||||
|
||||
console.print_header('SSH Agent Management Example')
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.sshagent
|
||||
import freeflowuniverse.herolib.osal.linux
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
import incubaid.herolib.osal.sshagent
|
||||
import incubaid.herolib.osal.linux
|
||||
import incubaid.herolib.ui.console
|
||||
|
||||
fn demo_sshagent_basic() ! {
|
||||
console.print_header('SSH Agent Basic Demo')
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.sshagent
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
import incubaid.herolib.osal.sshagent
|
||||
import incubaid.herolib.ui.console
|
||||
|
||||
console.print_header('SSH Agent Management Example')
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.installers.infra.zinit as zinitinstaller
|
||||
import freeflowuniverse.herolib.sysadmin.startupmanager
|
||||
import incubaid.herolib.installers.infra.zinit as zinitinstaller
|
||||
import incubaid.herolib.sysadmin.startupmanager
|
||||
|
||||
mut z := zinitinstaller.get()!
|
||||
z.destroy()!
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.systemd
|
||||
import incubaid.herolib.osal.systemd
|
||||
|
||||
mut systemdfactory := systemd.new()!
|
||||
// mut systemdprocess := systemdfactory.new(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.tmux
|
||||
import freeflowuniverse.herolib.osal.core as osal
|
||||
import incubaid.herolib.osal.tmux
|
||||
import incubaid.herolib.osal.core as osal
|
||||
import time
|
||||
import os
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.tmux
|
||||
import freeflowuniverse.herolib.osal.core as osal
|
||||
import incubaid.herolib.osal.tmux
|
||||
import incubaid.herolib.osal.core as osal
|
||||
import time
|
||||
|
||||
// Constants for display formatting
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.tmux
|
||||
import incubaid.herolib.osal.tmux
|
||||
|
||||
mut t := tmux.new()!
|
||||
if !t.is_running()! {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.tmux
|
||||
import incubaid.herolib.osal.tmux
|
||||
import time
|
||||
|
||||
println('=== Tmux Pane Resizing Example ===')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.tmux
|
||||
import incubaid.herolib.osal.tmux
|
||||
import time
|
||||
|
||||
println('=== Tmux Pane Splitting Example ===')
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.tmux
|
||||
import freeflowuniverse.herolib.osal.core as osal
|
||||
import incubaid.herolib.osal.tmux
|
||||
import incubaid.herolib.osal.core as osal
|
||||
import time
|
||||
|
||||
mut t := tmux.new()!
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.tun
|
||||
import incubaid.herolib.osal.tun
|
||||
|
||||
// Check if TUN is available
|
||||
if available := tun.available() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S v -n -w -cg -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.ubuntu
|
||||
import incubaid.herolib.osal.ubuntu
|
||||
import os
|
||||
import time
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.ufw
|
||||
import incubaid.herolib.osal.ufw
|
||||
|
||||
ufw.enable()!
|
||||
println(ufw.ufw_status()!)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.osal.ufw
|
||||
import freeflowuniverse.herolib.core.playbook
|
||||
import incubaid.herolib.osal.ufw
|
||||
import incubaid.herolib.core.playbook
|
||||
|
||||
heroscript := "
|
||||
!!ufw.configure
|
||||
|
||||
@@ -2,7 +2,7 @@ module main
|
||||
|
||||
import os
|
||||
import time
|
||||
import freeflowuniverse.herolib.osal.zinit
|
||||
import incubaid.herolib.osal.zinit
|
||||
|
||||
fn main() {
|
||||
do() or { panic(err) }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import os
|
||||
import time
|
||||
import freeflowuniverse.herolib.osal.zinit
|
||||
import incubaid.herolib.osal.zinit
|
||||
|
||||
zinit.destroy()!
|
||||
mut z := zinit.new()!
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module main
|
||||
|
||||
import freeflowuniverse.herolib.osal.zinit
|
||||
import incubaid.herolib.osal.zinit
|
||||
import json
|
||||
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user