返回 DeepSeek-Reasonix
dotenv.go
根目录 / desktop / dotenv.go
1 package main
2
3 import (
4 "reasonix/internal/config"
5 )
6
7 // upsertDotEnv stores KEY=value in Reasonix's global .env and applies it to the
8 // running process so a rebuild picks it up without a restart.
9 func upsertDotEnv(key, value string) error {
10 _, err := config.SetCredential(key, value)
11 return err
12 }
13
14 func removeDotEnv(key string) error {
15 return config.RemoveCredential(key)
16 }
17
17 lines GO