Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Jul 27, 2024
1 parent 7246491 commit a9bddc3
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 76 deletions.
56 changes: 28 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,11 @@ pub fn pack() -> Result<()> {
let local_config_folder = local_config_folder().ok_or(Error::LocalConfigNotFound)?;
let local_config_file = local_config_folder.join(local_config_file());
let local_data_file = local_config_folder.join(global_config_file());
log::info(format!(" in: {}\nout: {}", local_config_file.display(),local_data_file.display()))?;
log::info(format!(
" in: {}\nout: {}",
local_config_file.display(),
local_data_file.display()
))?;
let toml = fs::read_to_string(local_config_file)?;
Config::try_parse(toml.as_str())?;
let data = chacha20poly1305::encrypt_slice(toml.as_bytes(), &key)?;
Expand Down
Loading

0 comments on commit a9bddc3

Please sign in to comment.