libknox 0.4.0

secret vault encrypted with GPG
Documentation
#[cfg(test)]
use std::error::Error;
use std::path::Path;

use knox_testing::spec;

use crate::*;

pub(crate) fn get_test_vault<P>(path: P) -> Result<VaultContext, Box<dyn Error>>
where
  P: AsRef<Path>,
{
  let context = VaultContext::create(&path, &spec::get_test_identities())?;
  context.write()?;

  Ok(context)
}