Man page - age-api-query(1)

Packages contas this manual

Manual

AGE-API-QUERY(1) age-api Manual AGE-API-QUERY(1)

age-api-query - Age bracket query tool

age-api-query

Reads the locally stored age bracket and prints:

  • a machine-readable age bracket number to standard output (stdout)
  • a human-readable age bracket description to standard error (stderr)

This separation allows scripting with stdout while still providing a helpful explanation for interactive use.

The age bracket is expected to be stored as an integer in the file ~/.age-api/age-bracket.

Bracket mapping:

  • 1: Under 13
  • 2: 13 to under 16
  • 3: 16 to under 18
  • 4: 18 or older

None.

  • /etc/age-api.d/*.conf
  • /usr/local/etc/age-api.d/*.conf

~/.age-api/age-bracket

0 Success.

1 Internal error or invalid bracket value (expected 1-4).

Machine-readable usage (recommended for scripts):

age-api-query

Suppress human-readable output:

age-api-query 2>/dev/null

Use the numeric bracket in a shell script:

age_bracket="$(age-api-query 2>/dev/null)"

https://www.kicksecure.com/wiki/age-api

This man page has been written by Patrick Schleizer (adrelanos@whonix.org).

January 2020 age-api