Comments (3)
The exit-code for both "No" and CTRL+C
is now 1. You can check this with the following snippet:
gum confirm; echo $?
And the user aborted message is fixed by: #578
from gum.
@MikaelFangel Thanks. But how can a user now abort completely the gum confirm request and exit the script?
from gum.
Okay, I investigated it a bit more and the issue you are experiencing is actually linked to the implementation of huh? not handling the user aborted properly. So, it should be fixed by the PR I've linked to this issue now, as it returns the exit code back to 130 as of earlier versions of gum.
from gum.
Related Issues (20)
- Gum choose "undefined: max" error HOT 6
- gum input header flags can output an incorrect render HOT 4
- `--cursor.foreground` not respected for `gum input` or `gum write`
- `choose` pagination has no indicators or prev/next since 0.14
- Helping hand HOT 2
- `gum input` mangling prompt (docs need updated) HOT 2
- Shell gets stuck when `--placeholder` in `gum input` contains Japanese characters HOT 2
- Add preselected options when using filter command
- Ability to specify `huh` theme HOT 3
- Confirm does not allow to default to the negative action HOT 1
- Alternative for autocomplete in zsh HOT 1
- Filepicker fuzzy find
- A HOT 1
- problem running binary from tarball on osx sonoma HOT 2
- gum choose --selected=: cursor do not appear HOT 1
- gum spin messes the screen HOT 3
- 0.14: navigation by page via arrow keys no longer works HOT 4
- `gum choose --item.foreground` has no effect HOT 5
- `gum file` with filtering
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.