compose-go icon indicating copy to clipboard operation
compose-go copied to clipboard

Cannot Marshal a `command` as a single string.

Open mattdee123 opened this issue 2 years ago • 0 comments

The command field of a compose service can be either a list of strings, or a single string.

This project represents it as

// ShellCommand is a string or list of string args
type ShellCommand []string

However, there doesn't seem to be a way to marshal it as a single string --it always comes out as a list. Does this mean that only the list form is supported?

mattdee123 avatar May 26 '22 18:05 mattdee123