diff options
| author | Jeff Carr <[email protected]> | 2024-10-30 07:52:44 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-30 07:52:44 -0500 |
| commit | 7685f0b5ebc217c2489aca4c913d28a01150ad74 (patch) | |
| tree | 6236178300fbb4a1fd49e8075b00924af1d6c80c /main.go | |
| parent | b129e1b1de8c4a87cfdfad5ab1e9cf693eb298ab (diff) | |
go-arg options
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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) + } } |
