mirror of
https://github.com/Squibid/rph.git
synced 2025-10-20 03:44:04 +00:00
26 lines
538 B
Go
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)
|
|
}
|
|
}
|