mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-12-25 04:19:47 +00:00
Set default mode to verbose
This commit is contained in:
parent
bc704df503
commit
7e4aa33a0a
@ -48,7 +48,7 @@ You need to **relogin** if you install virt-manager (libvirt) first time.
|
|||||||
|
|
||||||
## Run application
|
## Run application
|
||||||
|
|
||||||
$ appvm start chromium --verbose
|
$ appvm start chromium
|
||||||
$ # ... long wait for first time, because we need to collect a lot of packages
|
$ # ... long wait for first time, because we need to collect a lot of packages
|
||||||
|
|
||||||
You can customize local settings in **~/.config/appvm/nix/local.nix**.
|
You can customize local settings in **~/.config/appvm/nix/local.nix**.
|
||||||
|
4
appvm.go
4
appvm.go
@ -327,7 +327,7 @@ func main() {
|
|||||||
|
|
||||||
startCommand := kingpin.Command("start", "Start application")
|
startCommand := kingpin.Command("start", "Start application")
|
||||||
startName := startCommand.Arg("name", "Application name").Required().String()
|
startName := startCommand.Arg("name", "Application name").Required().String()
|
||||||
startVerbose := startCommand.Flag("verbose", "Increase verbosity").Default("False").Bool()
|
startQuiet := startCommand.Flag("quiet", "Less verbosity").Bool()
|
||||||
|
|
||||||
stopName := kingpin.Command("stop", "Stop application").Arg("name", "Application name").Required().String()
|
stopName := kingpin.Command("stop", "Stop application").Arg("name", "Application name").Required().String()
|
||||||
dropName := kingpin.Command("drop", "Remove application data").Arg("name", "Application name").Required().String()
|
dropName := kingpin.Command("drop", "Remove application data").Arg("name", "Application name").Required().String()
|
||||||
@ -343,7 +343,7 @@ func main() {
|
|||||||
case "generate":
|
case "generate":
|
||||||
generate(l, *generateName, *generateBin, *generateVMName)
|
generate(l, *generateName, *generateBin, *generateVMName)
|
||||||
case "start":
|
case "start":
|
||||||
start(l, *startName, *startVerbose)
|
start(l, *startName, !*startQuiet)
|
||||||
case "stop":
|
case "stop":
|
||||||
stop(l, *stopName)
|
stop(l, *stopName)
|
||||||
case "drop":
|
case "drop":
|
||||||
|
Loading…
Reference in New Issue
Block a user