зеркало из https://github.com/microsoft/docker.git
19 строки
313 B
Go
19 строки
313 B
Go
package builder
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
func handleJsonArgs(args []string, attributes map[string]bool) []string {
|
|
if len(args) == 0 {
|
|
return []string{}
|
|
}
|
|
|
|
if attributes != nil && attributes["json"] {
|
|
return args
|
|
}
|
|
|
|
// literal string command, not an exec array
|
|
return []string{strings.Join(args, " ")}
|
|
}
|