pub(crate) fn init<P, S>(
repo: Repository<P, S>,
key_opts: &KeyOptions,
config_opts: &ConfigOptions,
) -> Result<Repository<P, OpenStatus>>Expand description
Initialize repository
§Arguments
repo- Repository to initializekey_opts- Key optionsconfig_opts- Config options
§Errors
RepositoryErrorKind::OpeningPasswordFileFailed- If opening the password file failedRepositoryErrorKind::ReadingPasswordFromReaderFailed- If reading the password failedRepositoryErrorKind::FromSplitError- If splitting the password command failedRepositoryErrorKind::PasswordCommandExecutionFailed- If executing the password command failedRepositoryErrorKind::ReadingPasswordFromCommandFailed- If reading the password from the command failed
§Returns
Returns the initialized repository