Function brane_cli::utils::determine_kind
source · pub fn determine_kind(path: &Path) -> Result<PackageKind, UtilError>
Expand description
Edited: not taking a context anymore, returning CliErrors and a PackageKind instead of a string.
Tries to deduce the package kind from the given file.
Arguments
path
: Path to file from which we’d like to deduce the kind.
Returns
The PackageKind if we could deduce it, or some sort of CliError if we could not or something went wrong.