blob: 787ff10ccbda3f7f7297bfad8b40ae57f25c85b5 [file] [log] [blame]
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, " ")}
}