(org string)
| 112 | } |
| 113 | |
| 114 | func (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 | |
| 130 | func (h *Helper) IsDev() bool { |
| 131 | return h.Version.IsDev() |
no test coverage detected