()
| 31 | } |
| 32 | |
| 33 | func (actor Actor) RequireCurrentUser() (string, error) { |
| 34 | if !actor.IsLoggedIn() { |
| 35 | return "", actionerror.NotLoggedInError{ |
| 36 | BinaryName: actor.Config.BinaryName(), |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | return actor.Config.CurrentUserName() |
| 41 | } |
| 42 | |
| 43 | func (actor Actor) RequireTargetedOrg() (string, error) { |
| 44 | if !actor.IsOrgTargeted() { |
nothing calls this directly
no test coverage detected