Merge pull request #467 from mslacken/single-Overlay

enable overlay rendering
This commit is contained in:
Christian Goll
2022-06-24 09:50:14 +02:00
committed by GitHub
11 changed files with 326 additions and 143 deletions

View File

@@ -1,6 +1,9 @@
package imprt
import "github.com/spf13/cobra"
import (
"github.com/hpcng/warewulf/internal/pkg/overlay"
"github.com/spf13/cobra"
)
var (
baseCmd = &cobra.Command{
@@ -11,6 +14,13 @@ var (
RunE: CobraRunE,
Args: cobra.RangeArgs(2, 3),
Aliases: []string{"cp"},
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
if len(args) != 0 {
return nil, cobra.ShellCompDirectiveNoFileComp
}
list, _ := overlay.FindOverlays()
return list, cobra.ShellCompDirectiveNoFileComp
},
}
PermMode int32
NoOverlayUpdate bool