mirror of
https://github.com/Squibid/rph.git
synced 2025-10-19 19:34:04 +00:00
Compare commits
2 Commits
e1609a3bb2
...
f72b12aa6c
Author | SHA1 | Date | |
---|---|---|---|
f72b12aa6c
|
|||
895e8903ce
|
@@ -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")
|
||||
},
|
||||
|
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user