Giter Club home page Giter Club logo

Comments (7)

maaslalani avatar maaslalani commented on May 15, 2024 2

Hey @jackmac92, I think this is a really great idea. Let me/us think a little bit more about it / how to implement it (default behaviour vs opt-in, etc...).

Thanks for sharing the chronic tool, btw!

from gum.

maaslalani avatar maaslalani commented on May 15, 2024 1

Also, if you want a quick and dirty version of this functionality while we think about it, you can do this (on gum HEAD)

gum spin --show-output -- <command> >/dev/null

This will only display the stderr and not the stdout which should generally only output errors and be quiet if there are no errors

from gum.

chrisfromredfin avatar chrisfromredfin commented on May 15, 2024

I'm piggybacking a little, but I'm realizing that this is close to what I want. I want to display a gum spinner while I run a long-running process whose output I want/need. That is, I'm trying something like:

gum spin -s points --title "Fetching list of sites..." -- someLongCommand > output.txt

What I really want is to display a spinner while someLongCommand writes its output to a file. So, would there perhaps be a flag to also allow the output to pass through? Or to add a --output-to-file option or something?

from gum.

maaslalani avatar maaslalani commented on May 15, 2024

@chrisfromredfin That should work but you need to use the --show-output to redirect the output to the file (also make sure you're on the latest version of gum)

from gum.

chrisfromredfin avatar chrisfromredfin commented on May 15, 2024

from gum.

maaslalani avatar maaslalani commented on May 15, 2024

Ah sorry, I think the change that fixes this is not on v0.4.0.

@chrisfromredfin I think if you build on the latest code (including this commit: 4e61c12), the spinner will not be included in the file.

We will likely make a new release soon.

from gum.

chrisfromredfin avatar chrisfromredfin commented on May 15, 2024

Yes, just confirming that with a HEAD build it works! Excited for a new release. :)

from gum.

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.