Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
It now displays the actual output. This is not a change in the programs
behaviour. The README.md was incorrect since version 0.2 .
  • Loading branch information
TeFiLeDo committed Nov 17, 2023
1 parent 7de766a commit 13ad187
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ To see available options run: `tree-owners --help`

Basic example when running in this repository:
```
$ tree-owners .
$ tree-owners
users:
adrian
adrian (1000)
groups:
users
users (985)
```

Using `uid`s and `gid`s:
```
$ tree-owners --raw .
$ tree-owners --raw
users:
1000
Expand All @@ -30,13 +30,26 @@ groups:

Using `json` output:
```
$ tree-owners --json .
$ tree-owners --json
{
"users": [
"adrian"
],
"groups": [
"users"
]
"users": {
"1000": "adrian"
},
"groups": {
"985": "users"
}
}
```

Combining `json` and `uid`/`gid`:
```
$ tree-owners --raw --json
{
"users": {
"1000": null
},
"groups": {
"985": "users"
}
}
```

0 comments on commit 13ad187

Please sign in to comment.