Compare commits

...

2 Commits

2 changed files with 5 additions and 1 deletions

View File

@@ -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")
},

View File

@@ -54,7 +54,7 @@ func GenerateProject(opts TemplateOptions) {
return
}
subFS, err := fs.Sub(fsys, filepath.Join(opts.Lang, opts.ProjectType))
subFS, err := fs.Sub(fsys, path.Join(opts.Lang, opts.ProjectType))
if err != nil {
slog.Error("Unable to find project template", "template", opts.ProjectType, "error", err)
}