GithubHelp home page GithubHelp logo

cache select always prints to STDERR about glyr HOT 4 CLOSED

sahib avatar sahib commented on August 29, 2024
cache select always prints to STDERR

from glyr.

Comments (4)

sahib avatar sahib commented on August 29, 2024

Hi,

I'm afraid, I did not understand that. Maybe it's late, but did you meant to show another command in as the second one?

from glyr.

alphapapa avatar alphapapa commented on August 29, 2024

Sorry, I didn't make it very clear, and GitHub's formatting doesn't help. :) The difference in the second command is that STDERR is redirected to STDOUT. The cache getter ignores -w and always writes to STDERR.

from glyr.

sahib avatar sahib commented on August 29, 2024

Hi, this time I got it. I guess it was really late.

this should be done as of cf286b7.
Maybe I should add some clearing words: The output messages printed by glyr_cache_print() are not affected by --write. Those are always written to stderr and can be limited by --verbosity.

The output mechanism used by --write uses glyr_cache_write(), which should be used consistenly now. Therefore the following example will print the lyrics like the normal lyrics getter:

glyrc cache select lyrics -a "Akrea" -t "Trugbild" --cache $HOME/.cache/glyrc

while this would print only the lyrics on stdout, but no other messages:

glyrc cache select lyrics -a "Akrea" -t "Trugbild" --cache $HOME/.cache/glyrc -w stdout -v0

from glyr.

alphapapa avatar alphapapa commented on August 29, 2024

Hi,

Thanks, that was fast. I'm still a bit confused about the last examples you gave, but if the cache getter behaves the same as the lyrics getter, I'm happy. :)

from glyr.

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.