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 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
- `gum file` does not respect `esc` key binding HOT 1
- the previous verison: `gum confirm` supports key y for yes, n for no. but now it doesn't work HOT 2
- `gum file` allow typing path like native File Picker of Windows & macOS
- gum input showing enter submit HOT 2
- Allow reordering of list with choose
- windows scripting HOT 1
- `gum spin` can only executes a single command HOT 1
- VS Code extension
- gum write height being capped at 7 HOT 1
- Gum Spin pin to the bottom
- `gum table` v0.14.4 broke height HOT 5
- gum file --cursor is not working properly
- Gum write limited to 99 lines despite --char-limit 0 HOT 1
- Running gum file with the --no-show-help flag causes console to lock up HOT 1
- Use `gum file` to find specific file types/using wildcards to narrow down HOT 2
- Multiple choices for gum confirm
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.