mirror of
https://github.com/Squibid/rph.git
synced 2025-10-20 11:54:04 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
f72b12aa6c
|
|||
895e8903ce
|
@@ -26,6 +26,10 @@ options in using the following flags:
|
|||||||
Example:
|
Example:
|
||||||
rph template --lang=java --type=commandbased --dir=MyRobot --team=5438 --desktopSupport=false`,
|
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) {
|
PreRun: func(cmd *cobra.Command, args []string) {
|
||||||
template.Fetch(false, "keep")
|
template.Fetch(false, "keep")
|
||||||
},
|
},
|
||||||
|
@@ -54,7 +54,7 @@ func GenerateProject(opts TemplateOptions) {
|
|||||||
return
|
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 {
|
if err != nil {
|
||||||
slog.Error("Unable to find project template", "template", opts.ProjectType, "error", err)
|
slog.Error("Unable to find project template", "template", opts.ProjectType, "error", err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user