From 895e8903ce9180534ba627e14aac454abf724cce Mon Sep 17 00:00:00 2001 From: Squibid Date: Fri, 17 Oct 2025 14:50:41 -0400 Subject: [PATCH] fix(template): add a noop to allow for template generation --- cmd/template.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/template.go b/cmd/template.go index 30980af..3f8b449 100644 --- a/cmd/template.go +++ b/cmd/template.go @@ -26,6 +26,10 @@ options in using the following flags: Example: rph template --lang=java --type=commandbased --dir=MyRobot --team=5438 --desktopSupport=false`, + PersistentPreRun: func(cmd *cobra.Command, args []string) { + // This is a noop to stop the root command from preventing us from making + // a new robot project + }, PreRun: func(cmd *cobra.Command, args []string) { template.Fetch(false, "keep") },