3 Commits
v1.0 ... v1.2

Author SHA1 Message Date
895e8903ce fix(template): add a noop to allow for template generation 2025-10-17 14:50:41 -04:00
e1609a3bb2 fix(vendordep list): missing description 2025-10-17 14:41:30 -04:00
a75e49a4df fix(typo): whoops 2025-10-17 14:38:29 -04:00
3 changed files with 7 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
# RPS (Robot Pits Helper) # RPH (Robot Pits Helper)
Manage your FRC robot code the UNIX way. Manage your FRC robot code the UNIX way.
## Installing ## Installing

View File

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

View File

@@ -11,13 +11,8 @@ import (
// vendordeplistCmd represents the vendordep list command // vendordeplistCmd represents the vendordep list command
var vendordeplistCmd = &cobra.Command{ var vendordeplistCmd = &cobra.Command{
Use: "list", Use: "list",
Short: "List out your vendordeps", Short: "List out your installed vendordeps",
Long: `A longer description that spans multiple lines and likely contains examples Long: `List out your installed vendordeps.`,
and usage of using your command. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Aliases: []string{ "ls" }, Aliases: []string{ "ls" },
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
if !inProjectDir() { return nil } if !inProjectDir() { return nil }