2016-12-14から1日間の記事一覧
github.com gofmtのshellscript版。 go get -u github.com/mvdan/sh/cmd/shfmt でインストールするとshfmtコマンドが利用可能になる。 例えば #!/bin/bash function test { echo $1 } for i in 1 2 3 do test $i done に対して適用すると #!/bin/bash function…
github.com gofmtのshellscript版。 go get -u github.com/mvdan/sh/cmd/shfmt でインストールするとshfmtコマンドが利用可能になる。 例えば #!/bin/bash function test { echo $1 } for i in 1 2 3 do test $i done に対して適用すると #!/bin/bash function…