MCPcopy Index your code
hub / github.com/rilldata/rill / SetOrg

Method SetOrg

cli/pkg/cmdutil/helper.go:114–128  ·  view source on GitHub ↗
(org string)

Source from the content-addressed store, hash-verified

112}
113
114func (h *Helper) SetOrg(org string) error {
115 if h.Org == org {
116 return nil
117 }
118 h.Org = org
119 err := h.DotRill.SetDefaultOrg(org)
120 if err != nil {
121 return fmt.Errorf("failed to set default org: %w", err)
122 }
123
124 h.gitHelperMu.Lock()
125 defer h.gitHelperMu.Unlock()
126 h.gitHelper = nil // Invalidate the git helper since the org has changed.
127 return nil
128}
129
130func (h *Helper) IsDev() bool {
131 return h.Version.IsDev()

Callers 2

DeployProjectMethod · 0.80
RedeployProjectMethod · 0.80

Calls 4

SetDefaultOrgMethod · 0.80
ErrorfMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected