summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-30 07:52:44 -0500
committerJeff Carr <[email protected]>2024-10-30 07:52:44 -0500
commit7685f0b5ebc217c2489aca4c913d28a01150ad74 (patch)
tree6236178300fbb4a1fd49e8075b00924af1d6c80c /main.go
parentb129e1b1de8c4a87cfdfad5ab1e9cf693eb298ab (diff)
go-arg options
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/main.go b/main.go
index 839682e..005478a 100644
--- a/main.go
+++ b/main.go
@@ -7,6 +7,7 @@ import (
"os"
"go.wit.com/dev/alexflint/arg"
+ "go.wit.com/log"
)
var Version string
@@ -22,4 +23,20 @@ func main() {
pp.WriteHelp(os.Stdout)
os.Exit(0)
}
+ 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)
+ }
}