feat: inital commit

- added template subcmd which generates frc project templates
This commit is contained in:
2025-10-14 23:48:14 -04:00
commit 12cefa9092
15 changed files with 2037 additions and 0 deletions

29
utils/boolFlag.go Normal file
View File

@@ -0,0 +1,29 @@
package utils
import (
"fmt"
"strconv"
)
type BoolFlag struct {
IsSet bool
Value bool
}
func (b *BoolFlag) String() string {
return fmt.Sprintf("%v", b.Value)
}
func (b *BoolFlag) Set(s string) error {
v, err := strconv.ParseBool(s)
if err != nil {
return fmt.Errorf("invalid boolean: %s", s)
}
b.IsSet = true
b.Value = v
return nil
}
func (b *BoolFlag) Type() string {
return "bool"
}