MCPcopy Create free account
hub / github.com/rilldata/rill / GetEnvToken

Method GetEnvToken

cli/pkg/dotrill/dotrill.go:224–227  ·  view source on GitHub ↗

GetEnvToken loads the token for given env

(env string)

Source from the content-addressed store, hash-verified

222
223// GetEnvToken loads the token for given env
224func (d DotRill) GetEnvToken(env string) (string, error) {
225 key := fmt.Sprintf("tokens.%s", env)
226 return d.Get(CredentialsFilename, key)
227}
228
229// GetCurrentUserID gets the current user ID
230func (d DotRill) GetUserID() (string, error) {

Callers 1

switchEnvFunction · 0.80

Calls 1

GetMethod · 0.95

Tested by

no test coverage detected