createAction names an artifact in its failure line by what it was created from, or by its name when it came from --body.
(a artifact)
| 493 | // createAction names an artifact in its failure line by what it was created |
| 494 | // from, or by its name when it came from --body. |
| 495 | func createAction(a artifact) string { |
| 496 | switch a.source.kind { |
| 497 | case fromStdin: |
| 498 | return "create artifact from standard input" |
| 499 | case fromBodyFlag: |
| 500 | return fmt.Sprintf("create artifact (%s)", text.RemoveExcessiveWhitespace(a.name)) |
| 501 | } |
| 502 | return "create artifact from " + a.source.arg |
| 503 | } |
no test coverage detected