mirror of
https://github.com/Squibid/rph.git
synced 2025-12-05 14:19:40 -05:00
fix(template): add a noop to allow for template generation
This commit is contained in:
parent
e1609a3bb2
commit
895e8903ce
1 changed files with 4 additions and 0 deletions
|
|
@ -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")
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue