Skip to content
New issue

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 throws an error if user types incorrect path (dir that doesn't exist) #781

Open
mwmcode opened this issue Jan 5, 2025 · 0 comments · May be fixed by #784
Open

files: true throws an error if user types incorrect path (dir that doesn't exist) #781

mwmcode opened this issue Jan 5, 2025 · 0 comments · May be fixed by #784

Comments

@mwmcode
Copy link

mwmcode commented Jan 5, 2025

import { Input } from '@cliffy/prompt/input';

const result: string = await Input.prompt({
  message: 'which directory?',
  files: true,
  default: '/some/path',
});
files-issue.mov

link to sample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant