Function brane_cli::utils::determine_file
source ยท pub fn determine_file(dir: &Path) -> Result<PathBuf, UtilError>
Expand description
Edited: now returning CliErrors.
Tries to determine the package file in the pulled repository.
TODO: This is rather dumb, why does it not just check the contents of the file?
Arguments
dir
: The directory the is the root of a package.
Returns
A PathBuf pointing to what we think is the package file, or else a CliError if we could not determine it or something went wrong.