Comments (7)
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.
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.
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.
@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.
from gum.
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.
Yes, just confirming that with a HEAD build it works! Excited for a new release. :)
from gum.
Related Issues (20)
- Add a command palette
- Outdated syntax in pager command example comment
- add (shift) tab keybindings
- 0.14.0 release was not completed HOT 5
- Pressing `a` to select all in `gum choose` no longer works
- Release 0.14.0 does not contain any release assets HOT 4
- fish completions break tab-completion of files/folders
- Unnecessary whitespace output
- gum write completion (intended?)
- gum choose wrapping (intended?) HOT 1
- cursor foreground color
- gum confirm no longer lets you disable negative message HOT 1
- gum confirm does not work on powershell HOT 1
- "Esc" does not exit "gum input" anymore
- gum choose prints "user aborted" when you ctrl-c HOT 1
- Gum spin only accepts a hard-coded command
- gum choose v0.14.0: timeout no longer working
- gum choose does not center Yes and No in a centered manner like the previous gum versions
- Can't extract with `tar -x` HOT 2
- gum v0.14.0 confirm: no longer able to answer with Y/N keys HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gum.