rag-ls-files(1)
==========
NAME
----
rag-ls-files - Show information about files
SYNOPSIS
--------
[verse]
'rag ls-files' [--name-only | --stat-only | --uid-only]
[--staged | --processed] [--json | -j] [--abbrev <n=9>]
[<uid>..]
DESCRIPTION
-----------
Run `rag help uid-query` to read how uid-query works. If the uid is of a chunk
or an image, it dies.
If multiple files are matched, it shows the information about all the matched
files.
Instead of showing the full 64-byte uid, it shows the first `n` bytes of uid,
where `n` is set by `--abbrev` option. Unlike git, it doesn't use any
heuristics to guarantee that the abbreviated uid is unique.
If `--json` is set, it dumps a valid json to stdout. Its schema is,
- no flags: `[file_schema: object]`
- `--uid-only`: `[uid: string]`
- `--name-only`: `[name: string]`
- `--stat-only`: `{ "total files": integer, "staged files": integer, "processed files": integer }`