added wwctl clean to remove cache/dead overlays

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll
2024-10-21 11:44:46 +02:00
committed by Jonathon Anderson
parent 511938ac5c
commit ff84974506
7 changed files with 142 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import (
"os"
"github.com/spf13/cobra"
"github.com/warewulf/warewulf/internal/app/wwctl/clean"
"github.com/warewulf/warewulf/internal/app/wwctl/configure"
"github.com/warewulf/warewulf/internal/app/wwctl/container"
"github.com/warewulf/warewulf/internal/app/wwctl/genconf"
@@ -58,6 +59,7 @@ func init() {
rootCmd.AddCommand(version.GetCommand())
rootCmd.AddCommand(ssh.GetCommand())
rootCmd.AddCommand(genconf.GetCommand())
rootCmd.AddCommand(clean.GetCommand())
}
// GetRootCommand returns the root cobra.Command for the application.