Sebastian Davids

Results 199 comments of Sebastian Davids

> Swiftly could do a better job of cleaning up the files and directory ```console $ tree --noreport ~/.swiftly /Users/redacted/.swiftly ├── bin └── share └── doc └── swiftly └── license...

> Thanks. How often does this realistically come up? Every time one wants to use `--find`/`--list` with `xargs` or any other tool like `sort`.

```shell -l[=0], --list[=0] list files whose formatting differs from shfmt's; paths are separated by a newline or a null character if -l=0 (corresponding to the -0 option of xargs) -f[=0],...

> You only need to null-separate arguments when they could contain newlines though. Maybe you wanted to say “spaces”? > I have never in my life encountered any filenames containing...

As far as I can tell the [flag](https://pkg.go.dev/flag) package does not differentiate between `--flag=x` and `--flag x`. If you have a [String value](https://pkg.go.dev/[email protected]#String) then you must have a value, i.e....

Adding ```go func (*stringFlag) IsBoolFlag() bool { return true } ``` does not change a thing. `shfmt -l .` ⇒ `list.val.val = "."`

It have it working now, but one side effect is: `./shfmt2 -l=true .` is the same as `./shfmt2 -l .`. Should that be documented?

Do you want just one `boolFlag` or one `listFlag` and one `findFlag`. Considering now both have the same allowed values, but that might change in the future. ```go func (s...

Verified: ```console $ shfmt --version 3.11.0 $ mkdir -p /tmp/test/node_modules && cd $_/.. $ echo 'echo "no space"' >test.sh $ echo 'echo "with space"' >a\ test.sh $ chmod -R u+x...