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)
| 451 | // tagBoundParams(boundParams, paramUnion, tag) returns the list paramUnion with |
| 452 | // all strings listed under boundParams set with a prefix tag. |
| 453 | func 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, |