Closed sylr closed 3 years ago
How can
age -r recipients -o data.age data
be less intuitive than
awk '{print "-r", $0}' recipients | xargs -J % age % -o data.age data
?
I find it unintuitive that -r
should take a string, which could be either interpreted as a key or a filename. I find this ambiguity confusing. As I suggested already, you could put the xargs
stuff into a script, if you find yourself using something like this frequently.
Hi! Thank you for contributing! I took a different path in #173, but it was useful to look at open PRs for the users' expectations. Let me know if that implementation works for you!
I wrote up an explanation of why I ended up implementing recipient files and not HTTPS sources on the mailing list, and I appreciate feedback! https://groups.google.com/g/age-dev/c/StmWsOyb-H8/m/a44rSBIWCAAJ
I'm not a fan of this pull request. The new behaviour seems unintuitive to me and is achievable with the features that
age
provide already.age
is supposed to be a UNIX-style tool, so I think combining it withxargs
would be a simpler way to support recipient files (you can easily put this into a script if you do it often):I highly value orthogonality in the features of tools and would hate to see such unneeded feature creep in
age
.