MCPcopy Create free account
hub / github.com/convox/rack / commandString

Function commandString

provider/aws/processes.go:677–689  ·  view source on GitHub ↗
(cs []string)

Source from the content-addressed store, hash-verified

675}
676
677func commandString(cs []string) string {
678 cmd := make([]string, len(cs))
679
680 for i, c := range cs {
681 if strings.Contains(c, " ") {
682 cmd[i] = fmt.Sprintf("%q", c)
683 } else {
684 cmd[i] = c
685 }
686 }
687
688 return strings.Join(cmd, " ")
689}
690
691func (p *Provider) containerDefinitionForTask(arn string) (*ecs.ContainerDefinition, error) {
692 cd, ok := cache.Get("containerDefinitionForTask", arn).(*ecs.ContainerDefinition)

Callers

nothing calls this directly

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected