diff options
| author | Jeff Carr <[email protected]> | 2025-10-19 06:22:22 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-19 06:22:22 -0500 |
| commit | 4cb0a4e85cf25244e1e7bbd8d9ef8135582c7ee9 (patch) | |
| tree | 6c3aa54ca9e1df83ddbee3ebc341185eedaec274 /argv.go | |
| parent | e342a3bb0a944899a8514055a861da084489e1ab (diff) | |
new argvv0.1.59
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/argv.go b/argv.go deleted file mode 100644 index 525f68e..0000000 --- a/argv.go +++ /dev/null @@ -1,42 +0,0 @@ -package main - -/* - this parses the command line arguements - this enables command line options from other packages like 'gui' and 'log' -*/ - -import ( - "go.wit.com/dev/alexflint/arg" -) - -var argv args - -type args struct { - Port int `arg:"--port" default:"2520" help:"port to run on"` -} - -func (args) Version() string { - return "virtigod " + Version -} - -func init() { - arg.MustParse(&argv) -} - -func (a args) Description() string { - return ` - this daemon talks to virtigo talks to libvirt and/or qemu - -This sends data back to virtigo. It helps read out the libvirtxml -and convert it to protobuf. -The name is odd, it's virtigo-D not virti-god. - -You can query the status directly: - - # the list of running vms: - curl --silent http://localhost:2520/vms - - # information about libvirt domain for vm 'coriolis': - curl --silent http://localhost:2520/dumpdomain?domain=coriolis -` -} |
