cli

Fire-based command-line entry point exposed as the afwf-genpass script.

Two flavours per generator:

  • gen* — Alfred Script Filter entry, emits JSON via afwf and routes errors to a rotating log file at paths.path_enum.path_error_log.

  • gen*-one — plain stdout, prints exactly one value. Independent of Alfred; handy in shell pipelines (e.g. export TOKEN=$(afwf-genpass genid-one)).

class afwf_genpass.cli.Command[source]

Fire subcommand container. gen* → Alfred JSON; gen*-one → stdout.

genpass(query: str) None[source]

Script Filter: random passwords. Empty query falls back to length 12.

genid(query: str) None[source]

Script Filter: random short IDs. Empty query falls back to length 16.

genuuid4() None[source]

Script Filter: random UUID4s. Configure Alfred with argumenttype=2.

genpass_one(length: int = 12) None[source]

Print one random password of length chars.

genid_one(length: int = 16) None[source]

Print one random short ID of length chars.

genuuid4_one() None[source]

Print one random UUID4.

afwf_genpass.cli.run()[source]

Console-script entry point declared in pyproject.toml.