mirror of
https://codeberg.org/postscriptum/snac2nex.git
synced 2026-03-31 13:15:27 +00:00
draft fs permission options
This commit is contained in:
parent
2926f23c22
commit
8b8655daf5
1 changed files with 17 additions and 0 deletions
|
|
@ -48,6 +48,15 @@ pub struct Config {
|
|||
#[arg(long, default_value_t = String::from("%Y/%m/%d %H:%M:%S"))]
|
||||
pub format_updated: String,
|
||||
|
||||
/* @TODO
|
||||
/// Set directory permissions (macos, linux only)
|
||||
#[arg(long, value_parser = chmod, default_value_t = 0o755)]
|
||||
pub chmod_dir: u32,
|
||||
|
||||
/// Set file permissions (macos, linux only)
|
||||
#[arg(long, value_parser = chmod, default_value_t = 0o644)]
|
||||
pub chmod_file: u32,
|
||||
*/
|
||||
/// Keep Nex entry on Snac post was removed
|
||||
#[arg(short, long, default_value_t = false)]
|
||||
pub keep: bool,
|
||||
|
|
@ -56,3 +65,11 @@ pub struct Config {
|
|||
#[arg(short, long, default_value_t = false)]
|
||||
pub daemon: bool,
|
||||
}
|
||||
|
||||
/* @TODO
|
||||
fn chmod(chmod: &str) -> Result<u32, std::num::ParseIntError> {
|
||||
if chmod.len() != 3 {
|
||||
todo!("Expected 3 digits as the Unix value!")
|
||||
}
|
||||
u32::from_str_radix(chmod, 8)
|
||||
} */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue