refactor: remove unused devbox.json and related configurations

This commit is contained in:
Prad Nukala
2024-12-10 15:09:32 -05:00
parent b57bea6f7b
commit e139aee2b3
7 changed files with 65 additions and 94 deletions
-8
View File
@@ -23,8 +23,6 @@ type Env interface {
GetSonrGrpcUrl() string
GetSonrRpcUrl() string
GetTurnstileSiteKey() string
}
var _ Env = (*EnvImpl)(nil)
@@ -45,8 +43,6 @@ type EnvImpl struct {
SonrGrpcUrl string `pkl:"sonrGrpcUrl"`
SonrRpcUrl string `pkl:"sonrRpcUrl"`
TurnstileSiteKey string `pkl:"turnstileSiteKey"`
}
func (rcv *EnvImpl) GetServePort() int {
@@ -81,10 +77,6 @@ func (rcv *EnvImpl) GetSonrRpcUrl() string {
return rcv.SonrRpcUrl
}
func (rcv *EnvImpl) GetTurnstileSiteKey() string {
return rcv.TurnstileSiteKey
}
// LoadFromPath loads the pkl module at the given path and evaluates it into a Env
func LoadFromPath(ctx context.Context, path string) (ret Env, err error) {
evaluator, err := pkl.NewEvaluator(ctx, pkl.PreconfiguredOptions)