feat: add storage_dir option
feat(cli): store config in userdata folder
This commit is contained in:
parent
f036106a73
commit
c688ff74e9
5 changed files with 47 additions and 33 deletions
|
|
@ -29,6 +29,8 @@ use time::{macros::format_description, OffsetDateTime};
|
|||
|
||||
use crate::{deobfuscate::DeobfData, util};
|
||||
|
||||
pub(crate) const DEFAULT_REPORT_DIR: &str = "rustypipe_reports";
|
||||
|
||||
const FILENAME_FORMAT: &[time::format_description::FormatItem] =
|
||||
format_description!("[year]-[month]-[day]_[hour]-[minute]-[second]");
|
||||
|
||||
|
|
@ -137,7 +139,7 @@ impl FileReporter {
|
|||
impl Default for FileReporter {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
path: Path::new("rustypipe_reports").to_path_buf(),
|
||||
path: Path::new(DEFAULT_REPORT_DIR).to_path_buf(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue