builder/support.go
a1522ec0
 package builder
22c46af4
 
 import (
 	"strings"
 )
 
cb51681a
 func handleJsonArgs(args []string, attributes map[string]bool) []string {
ac107995
 	if len(args) == 0 {
 		return []string{}
 	}
 
cb51681a
 	if attributes != nil && attributes["json"] {
 		return args
 	}
 
 	// literal string command, not an exec array
ac107995
 	return []string{strings.Join(args, " ")}
cb51681a
 }