mirror of
https://github.com/TeFiLeDo/tree-owners.git
synced 2024-11-01 01:46:17 +01:00
update README.md
It now displays the actual output. This is not a change in the programs behaviour. The README.md was incorrect since version 0.2 .
This commit is contained in:
parent
7de766af8b
commit
13ad1878df
35
README.md
35
README.md
@ -10,17 +10,17 @@ To see available options run: `tree-owners --help`
|
|||||||
|
|
||||||
Basic example when running in this repository:
|
Basic example when running in this repository:
|
||||||
```
|
```
|
||||||
$ tree-owners .
|
$ tree-owners
|
||||||
users:
|
users:
|
||||||
adrian
|
adrian (1000)
|
||||||
|
|
||||||
groups:
|
groups:
|
||||||
users
|
users (985)
|
||||||
```
|
```
|
||||||
|
|
||||||
Using `uid`s and `gid`s:
|
Using `uid`s and `gid`s:
|
||||||
```
|
```
|
||||||
$ tree-owners --raw .
|
$ tree-owners --raw
|
||||||
users:
|
users:
|
||||||
1000
|
1000
|
||||||
|
|
||||||
@ -30,13 +30,26 @@ groups:
|
|||||||
|
|
||||||
Using `json` output:
|
Using `json` output:
|
||||||
```
|
```
|
||||||
$ tree-owners --json .
|
$ tree-owners --json
|
||||||
{
|
{
|
||||||
"users": [
|
"users": {
|
||||||
"adrian"
|
"1000": "adrian"
|
||||||
],
|
},
|
||||||
"groups": [
|
"groups": {
|
||||||
"users"
|
"985": "users"
|
||||||
]
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Combining `json` and `uid`/`gid`:
|
||||||
|
```
|
||||||
|
$ tree-owners --raw --json
|
||||||
|
{
|
||||||
|
"users": {
|
||||||
|
"1000": null
|
||||||
|
},
|
||||||
|
"groups": {
|
||||||
|
"985": "users"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user