pkcs11-tools icon indicating copy to clipboard operation
pkcs11-tools copied to clipboard

feat: add bash completion for p11* tools

Open mdevolde opened this issue 8 months ago • 0 comments

This PR adds bash completion support for several p11* CLI tools.

Features

  • Shared logic in completion/p11-common
  • Specific completions for: p11cat, p11cp, p11kcv, p11ls, p11more, p11mv, p11od, p11setattr
  • Supports PKCS11LIB, PKCS11SLOT, PKCS11PASSWORD as environment fallback
  • Documented usage, environment handling, and limitations

Makefile

  • Adds completion scripts to EXTRA_DIST
  • Installs them to ${datadir}/bash-completion/completions

Limitations

  • Does not support inline env variables (e.g. PKCS11LIB=... p11cat)
  • Zsh is not yet supported, could be addressed in a later contribution

mdevolde avatar Jun 25 '25 12:06 mdevolde