pub fn pick_file<C>(cmd: C, path: PathBuf) -> Result<PathBuf>where
    C: Fn() -> Option<Command>,
Expand description

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.