diff options
| author | Jeff Carr <[email protected]> | 2025-10-07 03:32:43 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-07 03:32:43 -0500 |
| commit | 8fb5b33bfc92e658988e58b46c6fab461520655f (patch) | |
| tree | b4dfa4bf77b2c92b2ecc7627494d793b66ef1ae2 | |
| parent | dcf2e3fb884f007d9e13911db0e36ff672a321a9 (diff) | |
only show installed stuffv0.1.20
| -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 |
