cli: use TAB as delimiter in vm parse

Make it simpler to use result in pipes:

neo-go vm parse 123 | rg "Integer to Hex" | cut -f1- | sed -r 's/\t//g'
This commit is contained in:
Evgenii Stratonikov 2020-08-04 09:40:27 +03:00
parent 227c6a2caa
commit 7e3813a88f

View file

@ -500,7 +500,7 @@ func Parse(args []string) (string, error) {
out := buf.Bytes() out := buf.Bytes()
buf = bytes.NewBuffer(nil) buf = bytes.NewBuffer(nil)
w := tabwriter.NewWriter(buf, 0, 0, 4, ' ', 0) w := tabwriter.NewWriter(buf, 0, 4, 4, '\t', 0)
if _, err := w.Write(out); err != nil { if _, err := w.Write(out); err != nil {
return "", err return "", err
} }