Skip to main content

path

Function path 

Source
pub fn path(label: impl Into<String>) -> PathPrompt
Expand description

Pick a filesystem path with Tab completion. Defaults to the current working directory.

use cli_ui::prompt::path::path;

let project = path("Where to scaffold?").directory(true).run()?;