2024-10-30 02:28:53 -05:00
|
|
|
// Copyright 2024 WIT.COM Inc Licensed GPL 3.0
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"embed"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"go.wit.com/dev/alexflint/arg"
|
2024-10-30 07:52:44 -05:00
|
|
|
"go.wit.com/log"
|
2024-10-30 02:28:53 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
var Version string
|
|
|
|
|
|
|
|
//go:embed resources/*
|
|
|
|
var resources embed.FS
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
var pp *arg.Parser
|
|
|
|
pp = arg.MustParse(&argv)
|
|
|
|
|
|
|
|
if pp == nil {
|
|
|
|
pp.WriteHelp(os.Stdout)
|
|
|
|
os.Exit(0)
|
|
|
|
}
|
2024-10-30 07:52:44 -05:00
|
|
|
if argv.Dump != nil {
|
|
|
|
if argv.Dump.Droplets {
|
|
|
|
log.Info("dump droplets here ==", argv.Dump.Droplets)
|
|
|
|
os.Exit(0)
|
|
|
|
}
|
|
|
|
log.Info("dump something here")
|
|
|
|
os.Exit(0)
|
|
|
|
}
|
|
|
|
if argv.Create != nil {
|
|
|
|
log.Info("create something here")
|
|
|
|
os.Exit(0)
|
|
|
|
}
|
|
|
|
if argv.Start != nil {
|
|
|
|
log.Info("start the vm's here:", argv.Start)
|
|
|
|
os.Exit(0)
|
|
|
|
}
|
2024-10-30 02:28:53 -05:00
|
|
|
}
|