mirror of
https://github.com/Squibid/rph.git
synced 2025-10-20 03:44:04 +00:00
feat: inital commit
- added template subcmd which generates frc project templates
This commit is contained in:
19
state/state.go
Normal file
19
state/state.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package state
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
const Name = "rph"
|
||||
var CachePath string
|
||||
|
||||
func Setup() {
|
||||
var dir, err = os.UserCacheDir()
|
||||
if err != nil {
|
||||
fmt.Println("Unable to get user cache directory")
|
||||
os.Exit(1)
|
||||
}
|
||||
CachePath = filepath.Join(dir, Name)
|
||||
}
|
Reference in New Issue
Block a user