this is a work in progress. it's extremely alpha. any feedback welcome during the design phase.
example usage:
import gild/cluster
import gild/os/debian
import gild/types.{type VM}
import gild/vm
pub fn home() -> VM {
vm.new()
|> vm.name("home")
|> vm.os(debian.version("12"))
|> vm.update()
|> vm.install("mysql_server")
|> vm.return()
}
pub fn work() -> VM {
vm.new()
|> vm.name("work")
|> vm.os(debian.version("12"))
|> vm.update()
|> vm.install("apache2")
|> vm.install("mysql_server php")
|> vm.return()
}
pub fn main() {
cluster.new()
|> cluster.name("my cool project")
|> cluster.member(home())
|> cluster.member(work())
|> cluster.export()
}
output:
this library is used to help create visualizations inside the linkha.sh online playground and will be used inside a cli utility to make the declarative configuration come to life