0
0
mirror of https://github.com/TeFiLeDo/tree-owners.git synced 2024-11-14 00:36:22 +01:00
Find all owners (user and group) inside a directory tree.
Go to file
2023-11-17 07:27:57 +01:00
.github/workflows filter out PRs in CI 4 2023-10-19 11:55:07 +02:00
src simplify help texts 2023-09-24 15:16:18 +02:00
.gitignore initial implementation 2023-09-24 05:38:22 +02:00
build.rs adapt release to completion generation 2023-09-24 14:58:17 +02:00
Cargo.lock update dependencies 2023-11-17 07:27:57 +01:00
Cargo.toml update dependencies 2023-11-17 07:27:57 +01:00
LICENSE add license and prepare for publishing 2023-09-24 06:23:20 +02:00
README.md update README.md 2023-11-17 07:16:19 +01:00

tree-owners

Find all owners (user and group) inside a directory tree.

© Adrian Wannenmacher - Licensed under the EUPL

Usage

To see available options run: tree-owners --help

Basic example when running in this repository:

$ tree-owners
users:
    adrian (1000)

groups:
    users (985)

Using uids and gids:

$ tree-owners --raw
users:
    1000

groups:
    985

Using json output:

$ tree-owners --json
{
  "users": {
    "1000": "adrian"
  },
  "groups": {
    "985": "users"
  }
}

Combining json and uid/gid:

$ tree-owners --raw --json
{
  "users": {
    "1000": null
  },
  "groups": {
    "985": "users"
  }
}