From 13ad1878df74a9818ce8fe6183b0a8255c97260a Mon Sep 17 00:00:00 2001 From: Adrian Wannenmacher Date: Fri, 17 Nov 2023 07:16:19 +0100 Subject: [PATCH] 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 . --- README.md | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 0a30ab9..2abbb42 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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" + } } ```