mvdan / sh

A shell parser, formatter, and interpreter with bash support; includes shfmt
https://pkg.go.dev/mvdan.cc/sh/v3
BSD 3-Clause "New" or "Revised" License
7.29k stars 345 forks source link

Is there possible to break down multiple arguments to lines, one parameter per one line,thanks #731

Closed godhelpjun closed 3 years ago

godhelpjun commented 3 years ago

example /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true

to lines like this /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.networkaddress.cache.ttl=60 \ -Des.networkaddress.cache.negative.ttl=10 \ -XX:+AlwaysPreTouch \ -Xss1m -Djava.awt.headless=true

mvdan commented 3 years ago

Have you seen https://github.com/mvdan/sh/issues/80?

mvdan commented 3 years ago

I'm going to assume that this is a duplicate of #80.