()
| 250 | } |
| 251 | |
| 252 | func parseCreateParams() (params.CreateGithubEndpointParams, error) { |
| 253 | certBundleBytes, err := parseAndReadCABundle(endpointCACertPath) |
| 254 | if err != nil { |
| 255 | return params.CreateGithubEndpointParams{}, err |
| 256 | } |
| 257 | |
| 258 | ret := params.CreateGithubEndpointParams{ |
| 259 | Name: endpointName, |
| 260 | BaseURL: endpointBaseURL, |
| 261 | UploadBaseURL: endpointUploadURL, |
| 262 | APIBaseURL: endpointAPIBaseURL, |
| 263 | Description: endpointDescription, |
| 264 | CACertBundle: certBundleBytes, |
| 265 | } |
| 266 | return ret, nil |
| 267 | } |
| 268 | |
| 269 | func formatEndpoints(endpoints params.ForgeEndpoints) { |
| 270 | if outputFormat == common.OutputFormatJSON { |
no test coverage detected