Show each overlay only once #1675

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-01-30 04:59:54 -07:00
committed by Christian Goll
parent 9fe7d70d18
commit 4f83885c5b
16 changed files with 70 additions and 27 deletions

View File

@@ -1,7 +1,6 @@
package list
import (
"fmt"
"os"
"syscall"
@@ -18,11 +17,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
if len(args) > 0 {
overlays = args
} else {
var err error
overlays, err = overlay.FindOverlays()
if err != nil {
return fmt.Errorf("could not obtain list of overlays from system: %w", err)
}
overlays = overlay.FindOverlays()
}
t := table.New(cmd.OutOrStdout())