git-annex-findkeys(1)

πŸ“¦
version 10.20261026 Β· 2 versions
  • 10.20261026 Β· alpine 3.24, arch rolling, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 10.20230126 Β· debian bookworm
, in alpine 3.24, arch rolling, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– git-annex-findkeys πŸ’–

okay bestie, so this is the git-annex-findkeys page from the General Commands Manual β€” it's the little command that spills the tea on every key git-annex knows about πŸ«–βœ¨


✨ NAME ✨

git-annex-findkeys β€” lists available keys


🌸 SYNOPSIS 🌸

git annex findkeys

πŸ¦‹ DESCRIPTION πŸ¦‹

It outputs a list of keys known to git-annex. That's it. That's the whole vibe. a whole roster of keys, served fresh πŸ’…


πŸ‘‘ OPTIONS πŸ‘‘

🌈 matching options 🌈

The git-annex-matching-options(1) can be used to specify which keys to list.

By default, the findkeys command only lists keys whose content is currently present. Specifying any of the matching options will override this default behavior and match on all keys that git-annex knows about. so the second you add a matching option, the default just steps aside, no cap πŸ‘€

  • To list all keys, present or not, specify --anything.
  • To list keys whose content is not present, specify --not --in=here

  • --print0 β€” Output keys terminated with nulls, for use with xargs -0
  • --format=value β€” Use custom output formatting.

The value is a format string, in which '${var}' is expanded to the value of a variable. To right-justify a variable with whitespace, use '${var;width}' ; to left-justify a variable, use '${var;-width}'; to escape unusual characters (including control characters) in a variable, use '${escaped_var}'

These variables are available for use in formats: key, backend, bytesize, humansize, keyname, hashdirlower, hashdirmixed, mtime (for the mtime field of a WORM key).

Also, '\n' is a newline, '\000' is a NULL, etc.

The default output format is the same as --format='${escapedkey}\n' except when outputting to a terminal, control characters will be escaped. so like, same fit, but the terminal version gets a lil makeover πŸŽ€

  • --json β€” Output the list of keys in JSON format.

This is intended to be parsed by programs that use git-annex. Each line of output is a JSON object. one object per line, so your scripts can just go brrr 🧚

  • --json-error-messages β€” Messages that would normally be output to standard error are included in the JSON instead.

Also the git-annex-common-options(1) can be used. yes queen, those apply too πŸ’š


πŸ’œ SEE ALSO πŸ’œ


⭐ AUTHOR ⭐

Joey Hess <id@joeyh.name>


okay that's the whole page, you ate that πŸ’…βœ¨

mwah πŸ’– this was git-annex-findkeys(1) from the General Commands Manual β€” version/date stamped right there in the page footer, same as always, so you know it's the real one, periodt πŸŽ€