(c *api.Client, config unlinkConfig)
| 209 | } |
| 210 | |
| 211 | func unlinkTeam(c *api.Client, config unlinkConfig) error { |
| 212 | team, err := api.OrganizationTeam(c, config.opts.host, config.opts.owner, config.opts.team) |
| 213 | if err != nil { |
| 214 | return err |
| 215 | } |
| 216 | config.opts.teamID = team.ID |
| 217 | |
| 218 | err = config.client.UnlinkProjectFromTeam(config.opts.projectID, config.opts.teamID) |
| 219 | if err != nil { |
| 220 | return err |
| 221 | } |
| 222 | |
| 223 | return printResults(config, config.opts.team) |
| 224 | } |
| 225 | |
| 226 | func printResults(config unlinkConfig, linkedTarget string) error { |
| 227 | if !config.io.IsStdoutTTY() { |
no test coverage detected