updated ezconf

This commit is contained in:
2026-02-25 22:47:33 +11:00
parent 2fd5bcf4f5
commit b3428d15e5
14 changed files with 63 additions and 210 deletions

View File

@@ -7,8 +7,8 @@ import (
)
type Config struct {
Environment string // ENV SLAPSHOT_ENVIRONMENT: API environment to connect to (default: staging)
Key string // ENV SLAPSHOT_API_KEY: API Key for authorisation with the API (required)
Environment string `ezconf:"SLAPSHOT_ENVIRONMENT,default:staging,description:API environment to connect to"`
Key string `ezconf:"SLAPSHOT_API_KEY,required,description:API Key for authorisation with the API"`
}
func ConfigFromEnv() (any, error) {