Function interactor::pick_file
[−]
[src]
pub fn pick_file<C>(cmd: C, path: PathBuf) -> Result<PathBuf> where
C: Fn() -> Option<Command>,
Asks the user to select a file from the filesystem, starting at directory path
.
Requires a function that produces the command as cmd
, because commands aren't cloneable.