choose_files

Function choose_files 

Source
pub fn choose_files(path_items: Vec<PathItems>) -> Vec<PathItems>
Expand description

Prompts the user to select files to stage and returns the selected file paths. If no files are selected, the program exits.

§Arguments

  • path_items - A vector of PathItems representing files that can be staged.

§Returns

A vector of PathItems with updated selection status.