setLocalOrganization updates the local organization configuration
(orgName string)
| 518 | |
| 519 | // setLocalOrganization updates the local organization configuration |
| 520 | func setLocalOrganization(orgName string) error { |
| 521 | viper.Set(confOptions.organization.viperKey, orgName) |
| 522 | return viper.WriteConfig() |
| 523 | } |
| 524 | |
| 525 | func shouldAskForConfirmation(cmd *cobra.Command) bool { |
| 526 | return isAPITokenPreferred(cmd) && cmd.Annotations[confirmWhenUserToken] == trueString |
no test coverage detected