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

Method Get

cli/pkg/dotrill/dotrill.go:81–88  ·  view source on GitHub ↗

Get returns a single entry from ~/.rill/{filename}. It assumes filename identifies a YAML file.

(filename, key string)

Source from the content-addressed store, hash-verified

79// Get returns a single entry from ~/.rill/{filename}.
80// It assumes filename identifies a YAML file.
81func (d DotRill) Get(filename, key string) (string, error) {
82 conf, err := d.GetAll(filename)
83 if err != nil {
84 return "", err
85 }
86
87 return conf[key], nil
88}
89
90// Set sets a single value in ~/.rill/{filename}.
91// It assumes filename identifies a YAML file.

Callers 13

GetDefaultOrgMethod · 0.95
GetBackupDefaultOrgMethod · 0.95
GetDefaultAdminURLMethod · 0.95
GetAccessTokenMethod · 0.95
GetBackupTokenMethod · 0.95
GetRepresentingUserMethod · 0.95
GetVersionMethod · 0.95
GetVersionUpdatedAtMethod · 0.95
GetEnvTokenMethod · 0.95
GetUserIDMethod · 0.95
GetUserCheckHashMethod · 0.95

Calls 1

GetAllMethod · 0.95

Tested by

no test coverage detected