Git Product home page Git Product logo

Comments (2)

cyb3rz3us avatar cyb3rz3us commented on July 19, 2024

If possible, I would vote for using the same '-r' but if not feasible, then whatever works to get this implemented.

from age.

nxg avatar nxg commented on July 19, 2024

(This comment may be redundant, given the presence of the linked pull request; if so, just ignore)

Another possibility is to distinguish a key-file from a key by prefixing it with @

age -r @~/keys/someperson.pub

(curl --data-binary has a syntax like this, if it's useful to quote a precedent).

Another possibility is to regard the -r option value as referring to a file if there's a file by that name, and as an explicit key otherwise. It's true that adds a heuristic element, but it's only likely to get the wrong answer if there is (deliberately, mischievously, or accidentally) a file which shares its name with a key-value.

Adding file:// URLs is cute, and very general, but not massively easier to script (which is the real problem with the key-only value for -r). Excess generality can be a vice, as well, especially if it requires that other libraries be pulled in.

Overall, adding -R seems simpler.

from age.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.