We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
files: true
default
Input prompt returns . when user hits Enter even though a default value is provided.
.
Enter
It should return the default value
import { Input } from '@cliffy/prompt/input'; const result: string = await Input.prompt({ message: 'which directory?', files: true, default: '/some/path', }); console.log({ result }); // `.`
repo to reproduce the issue
Thanks for the awesome package, btw.
The text was updated successfully, but these errors were encountered:
fix: [draft/suggestions] re file:true issues c4spar#780 and c4spar#781
f4d7768
fix(prompt) input to fallback to default when files: true
9e1a8da
fixes c4spar#780
Successfully merging a pull request may close this issue.
Current behavior
Input prompt returns
.
when user hitsEnter
even though adefault
value is provided.Expected behavior
It should return the
default
valueSteps to reproduce
repo to reproduce the issue
The text was updated successfully, but these errors were encountered: