MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / tagBoundParams

Function tagBoundParams

commands/util.go:453–463  ·  view source on GitHub ↗

tagBoundParams(boundParams, paramUnion, tag) returns the list paramUnion with all strings listed under boundParams set with a prefix tag.

(boundParams []string, paramUnion []string, tag string)

Source from the content-addressed store, hash-verified

451// tagBoundParams(boundParams, paramUnion, tag) returns the list paramUnion with
452// all strings listed under boundParams set with a prefix tag.
453func tagBoundParams(boundParams []string, paramUnion []string, tag string) []string {
454 res := paramUnion
455 for i := 0; i < len(boundParams); i++ {
456 for j := 0; j < len(res); j++ {
457 if boundParams[i] == res[j] {
458 res[j] = fmt.Sprintf("%s%s", tag, res[j])
459 }
460 }
461 }
462 return res
463}
464
465// buildParamDescription(params) returns a default entity description for
466// `$ wsk [ENTITY] get [ENTITY_NAME] --summary` when parameters are defined,

Callers 1

getParamUnionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected