Files
rph/cmd/root.go
Squibid 12cefa9092 feat: inital commit
- added template subcmd which generates frc project templates
2025-10-14 23:48:14 -04:00

26 lines
538 B
Go

package cmd
import (
"os"
"rph/state"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: state.Name,
Short: "Manage your FRC robot code the UNIX way.",
Long: `rph (Robot Pits Helper) is a command line utility with the goal of
giving FRC teams a simple way to interact with wpilib robot code.
rph is cross platform, and should work everywhere wpilib is supported. To
actually run your robot code you will still need to install wpilib.`,
}
func Execute() {
err := rootCmd.Execute()
if err != nil {
os.Exit(1)
}
}