From 9539e20a4ef27e029faa1dbd6e139cac46296960 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Thu, 22 Dec 2022 14:54:42 +0100 Subject: [PATCH] add `-y` flag to `wwctl profile add` close #610 Signed-off-by: Christian Goll --- internal/app/wwctl/profile/add/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/app/wwctl/profile/add/root.go b/internal/app/wwctl/profile/add/root.go index 14694477..e3ad6d24 100644 --- a/internal/app/wwctl/profile/add/root.go +++ b/internal/app/wwctl/profile/add/root.go @@ -58,6 +58,7 @@ func GetCommand() *cobra.Command { }); err != nil { log.Println(err) } + baseCmd.PersistentFlags().BoolVarP(&SetYes, "yes", "y", false, "Set 'yes' to all questions asked") return baseCmd }