Giter Club home page Giter Club logo

Comments (7)

GloryFish avatar GloryFish commented on August 22, 2024

I agree this functionality would be very useful.

I would expect the --field flag to work the way @davidblewett tried above however it looks like notes_expand() returns null if it's processing a secure note:

https://github.com/lastpass/lastpass-cli/blob/master/blob.c#L752

from lastpass-cli.

bcopeland avatar bcopeland commented on August 22, 2024

notes_expand() is completely a no-op unless you turn on PROCESS_NOTES -- the feature is disabled by default because it tends to corrupt the contents of whatever is in the note when used with show

from lastpass-cli.

bcopeland avatar bcopeland commented on August 22, 2024

OK I pushed a fix for the 'corrupt' thing -- please try out the current tip.

$ ./lpass show --field "Public Key" test-ssh-key
ssh-dss AAAAB3NzaC1kc3MAAACBAKX...

from lastpass-cli.

GloryFish avatar GloryFish commented on August 22, 2024

I just pulled and tested and am seeing working behavior. I can pull individual fields from Secure Notes where I was getting blank values before.

That was fast! :)

from lastpass-cli.

bcopeland avatar bcopeland commented on August 22, 2024

Great, will close this then.

from lastpass-cli.

davidblewett avatar davidblewett commented on August 22, 2024

Thanks! Works for me. There is still a problem with https://forums.lastpass.com/viewtopic.php?f=7&t=94925 and using multi-line private keys, but that's probably beyond the scope of the lpass CLI.

from lastpass-cli.

bcopeland avatar bcopeland commented on August 22, 2024

FYI I've just made a patch to address the multiline key issue.

from lastpass-cli.

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.