Skip to content

Commit

Permalink
Merge pull request #3 from noborus/add-images
Browse files Browse the repository at this point in the history
Added example image
  • Loading branch information
noborus authored Mar 17, 2023
2 parents 28b5281 + 885c7e3 commit 048671d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ guesswidth guesses the separator position in CLI output.
The output of the `ps` command has no delimiters, making the values difficult to machine-readable.
guesswidth is smarter at guessing separators than just spaces.

guesswidth is guessed based on the position of characters in the header.
So having a header will give you better results.

## install command

There is also a guesswidth command.
Expand Down Expand Up @@ -48,3 +51,25 @@ PID,TTY,TIME,CMD
733212,pts/3,00:00:00,tee
733213,pts/3,00:00:00,guesswidth
```

##


## Examples

guesswidth inserts a delimiter (| by default)
(Colors are changed here for clarity).

Even if there are spaces in the header or body, they will be separated correctly.

### ps

![ps](./docs/ps.png)

### docker ps

![docker-ps](./docs/docker-ps.png)

### docker node

![docker node ls](./docs/docker-node.png)
Binary file added docs/docker-node.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/docker-ps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 048671d

Please sign in to comment.