Drop --print-bundle as it's redundant with fleet apply -o -
@@ -3,7 +3,6 @@ package cmds
import (
"os"
- "github.com/rancher/fleet/modules/cli/apply"
"github.com/rancher/fleet/modules/cli/match"
command "github.com/rancher/wrangler-cli"
"github.com/spf13/cobra"
@@ -23,17 +22,9 @@ type Test struct {
Label map[string]string `usage:"Cluster labels to match against" short:"l"`
GroupLabel map[string]string `usage:"Cluster group labels to match against" short:"L"`
Target string `usage:"Explicit target to match" short:"t"`
- PrintBundle bool `usage:"Don't run match and just output the generated bundle"`
}
func (m *Test) Run(cmd *cobra.Command, args []string) error {
- if m.PrintBundle {
- return apply.Apply(cmd.Context(), Client, "test", args, &apply.Options{
- BundleFile: m.BundleFile,
- Output: os.Stdout,
- })
- }
-
baseDir := "."
if len(args) > 0 {
baseDir = args[0]
