]> git.ardis.lu - envpass/commit
Only get passkey if actually required
authorArdis Lu <ardisglu@gmail.com>
Thu, 21 May 2026 05:59:14 +0000 (22:59 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 21 May 2026 05:59:14 +0000 (22:59 -0700)
commit339387adadc5185dd4e718b5576fe4b640bfae83
treea08902942e42dc1813ea3f167e20484a76af95e9
parent97edf24ccc7f12643aea1e5151501599b1326ba5
Only get passkey if actually required

Getting passkey is not required when `encrypt` is run on a file where all variables are already encrypted, or `decrypt` is run on a file where all variables are already decrypted.

Previously, the passkey flow would always initiate. Now, it will only initiate the first time it is required.

This change improves the UX in situations where `encrypt` or `decrypt` are called on a continuous basis. For example, when calling `envpass encrypt` in a `prestart` npm script hook.
src/command.js
test/index.test.js
This page took 0.03424 seconds and 4 git commands to generate.