From 4a4fcc97d407ddcf0f11eaa7738b8d8b2492b7c5 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Thu, 13 Jun 2024 11:30:32 +0200 Subject: [PATCH] wwctl overlay list completes existing overlays Signed-off-by: Christian Goll --- CHANGELOG.md | 1 + internal/app/wwctl/overlay/list/root.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bbcf4532..27799531 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix the issue that removing lines during wwctl overlay edit didn't work. #1235 - Fix the issue that new files created with wwctl overlay edit have 755 permissions. #1236 - Mount `/sys` and `/run` during `wwctl container exec`. #1287 +- Fix tab-completion for `wwctl overlay list`. #1260 ### Changed diff --git a/internal/app/wwctl/overlay/list/root.go b/internal/app/wwctl/overlay/list/root.go index de677b0e..ed1e7e68 100644 --- a/internal/app/wwctl/overlay/list/root.go +++ b/internal/app/wwctl/overlay/list/root.go @@ -14,7 +14,6 @@ var ( RunE: CobraRunE, Args: cobra.MinimumNArgs(0), Aliases: []string{"ls"}, - ValidArgs: []string{"system", "runtime"}, ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { if len(args) != 0 { return nil, cobra.ShellCompDirectiveNoFileComp