exec correctly

This commit is contained in:
Alexander Wang 2022-12-30 16:25:51 -08:00
parent 4c7398ba11
commit 005b27d464
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -126,7 +126,7 @@ func (p execPlugin) Layout(ctx context.Context, g *d2graph.Graph) error {
args := []string{"layout"}
for k, v := range p.opts {
args = append(args, k, v)
args = append(args, fmt.Sprintf("--%s", k), v)
}
cmd := exec.CommandContext(ctx, p.path, args...)