exec correctly
This commit is contained in:
parent
4c7398ba11
commit
005b27d464
1 changed files with 1 additions and 1 deletions
|
|
@ -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...)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue