Commit 9e54877
committed
By default, just assume a tty
Use of cgo is a pain for cross-compilation, and also if the person
running the build doesn't have a C compiler installed. So make the
default version of `isatty.Isatty()` just return true. The only effect
of this change is that progress information is output by default.
If you want to really use `isatty()`, compile with
make USE_ISATTY=t
or
go build --tags isatty
Users can still control the output of progress information using
`--progress`/`--no-progress`.1 parent e19b4c7 commit 9e54877
3 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
0 commit comments