Function brane_cli::utils::get_instance_dir

source ·
pub fn get_instance_dir(name: impl AsRef<str>) -> Result<PathBuf, UtilError>
Expand description

Gets the directory where we store the instance definition for the given instance.

Does not guarantee that the directory exists. Check ’ensure_instance_dir()` for that.

§Arguments

  • name: The name of the instance for which to get the directory.

§Returns

The path to the directory where we shall/have store(d) instance’s definition.

§Errors

This function may error if we failed to get the Brane configuration directory.