Function brane_ctl::generate::policy_database
source · pub async fn policy_database(
fix_dirs: bool,
path: PathBuf,
branch: String,
) -> Result<(), Error>
Expand description
Handles generating a new policies.db
database.
§Arguments
fix_dirs
: if true, will generate missing directories instead of complaining.path
: The path to write thepolicies.db
to.
§Returns
Nothing, but does write a new file to the given path and updates the user on stdout on success.
§Errors
This function may error if I/O errors occur while writing the file.