MCPcopy Create free account
hub / github.com/cli/cli / createAction

Function createAction

pkg/cmd/issue/artifact/create/create.go:495–503  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
495func 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}

Callers 1

createRunFunction · 0.85

Calls 1

Tested by

no test coverage detected