diff options
| -rw-r--r-- | argv.go | 3 | ||||
| -rw-r--r-- | doUpgrade.go | 6 |
2 files changed, 7 insertions, 2 deletions
@@ -34,6 +34,7 @@ type args struct { Install bool `arg:"--install" help:"go install the binaries first"` Verbose bool `arg:"--verbose" help:"be loud about it"` Force bool `arg:"--force" help:"rebuild everything"` + All bool `arg:"--all" help:"show everything"` Recursive bool `arg:"--recursive" help:"go-clone --recursive"` WITCOM bool `arg:"--witcom" help:"add the GPL header"` Max int32 `arg:"--max" help:"stop building after max builds"` @@ -126,7 +127,7 @@ func (args) Appname() string { } func (a args) DoAutoComplete(pb *prep.Auto) { - base := []string{"--version", "build", "upgrade", "git", "publish", "--force"} + base := []string{"--version", "build", "upgrade", "git", "publish", "--force", "--all"} if _, err := fhelp.CheckCmd("zood"); err == nil { base = append(base, "zoo") } diff --git a/doUpgrade.go b/doUpgrade.go index 5c644db..a94e680 100644 --- a/doUpgrade.go +++ b/doUpgrade.go @@ -45,7 +45,11 @@ func doUpgrade() error { } fmt.Println("Installed Packages:") - me.machine.PrintTable(me.machine.Wit) + if argv.All { + me.machine.PrintTable(me.machine.Wit) + } else { + me.machine.PrintInstalledTable() + } if argv.Force { // force remove the packages. can be used if binaries change but versions didn't |
