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

Create a new dialoguer prompt for directory navigation #4

Open
BlackPhlox opened this issue Jun 15, 2020 · 0 comments
Open

Create a new dialoguer prompt for directory navigation #4

BlackPhlox opened this issue Jun 15, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@BlackPhlox
Copy link
Owner

Something like this:

let filepath = FilepathSelect::with_theme(&ColorfulTheme::default())
        .with_prompt("Pick your json or js file")
		.extensions(vec!["json","js"])
        .defaults("C:/Users/thelu/Repos/wte/src")//Give path or default to current dir path
        .interact()
        .unwrap();
@BlackPhlox BlackPhlox added the cli label Jun 15, 2020
@BlackPhlox BlackPhlox added this to the CLI - Interact milestone Jun 15, 2020
@BlackPhlox BlackPhlox self-assigned this Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant