Skip to content

Commit

Permalink
Change: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Sojamann committed Dec 20, 2023
1 parent 4f44558 commit 1e76aa9
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,18 +306,33 @@ done

Given no limit progress is printed as text only.
```bash
find / -type d 2> /dev/null | gum progress -f '{Iter} ~ {Elapsed}' --show-output > /tmp/dump.txt
find / -type d 2> /dev/null | gum progress --show-output > /tmp/dump.txt
```

Use a custom format.
```bash
find / -type d 2> /dev/null | gum progress -f '{Iter} ~ {Elapsed}' --show-output > /tmp/dump.txt
find / -type d 2> /dev/null | gum progress -f '{Iter} ~ {Elapsed}' -o > /tmp/dump.txt
```

**Note:** when using a --progress-indicator != '\n' (the default) and showing the
output in the terminal (using -o/--output and not piped to a different process)
the lines will still be printed line wise even if the --progress-indicator is
different. This has no influence on the measurement of progress!
Using a different progress indicator

```bash
{
sleep 2s
echo ":step:Long process 1 completed"

sleep 2s
echo ":step:Long process 2 completed"

sleep 2s
echo ":step:Long process 3 completed"
} | gum progress -l 3 --progress-indicator ':step:' -o --hide-progress-indicator
```

**Note:** when using a --progress-indicator != '\n' (the default) with output
going to the terminal (using -o/--output not piped)
the lines will still be printed line wise. This has no influence on the
measurement of progress!

#### Spin

Expand Down

0 comments on commit 1e76aa9

Please sign in to comment.