mirror of
https://github.com/ouch-org/ouch.git
synced 2025-07-18 23:50:35 +00:00
complete subcommands
This commit is contained in:
parent
3a8cc9edda
commit
1034130d5d
@ -241,6 +241,7 @@ mod tests {
|
|||||||
fast: false,
|
fast: false,
|
||||||
slow: false,
|
slow: false,
|
||||||
follow_symlinks: false,
|
follow_symlinks: false,
|
||||||
|
disable_sandbox: true,
|
||||||
},
|
},
|
||||||
..mock_cli_args()
|
..mock_cli_args()
|
||||||
}
|
}
|
||||||
@ -255,6 +256,7 @@ mod tests {
|
|||||||
fast: false,
|
fast: false,
|
||||||
slow: false,
|
slow: false,
|
||||||
follow_symlinks: false,
|
follow_symlinks: false,
|
||||||
|
disable_sandbox: true,
|
||||||
},
|
},
|
||||||
..mock_cli_args()
|
..mock_cli_args()
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,7 @@ pub fn compress_files(
|
|||||||
question_policy: QuestionPolicy,
|
question_policy: QuestionPolicy,
|
||||||
file_visibility_policy: FileVisibilityPolicy,
|
file_visibility_policy: FileVisibilityPolicy,
|
||||||
level: Option<i16>,
|
level: Option<i16>,
|
||||||
|
disable_sandbox: bool,
|
||||||
) -> crate::Result<bool> {
|
) -> crate::Result<bool> {
|
||||||
// If the input files contain a directory, then the total size will be underestimated
|
// If the input files contain a directory, then the total size will be underestimated
|
||||||
let file_writer = BufWriter::with_capacity(BUFFER_CAPACITY, output_file);
|
let file_writer = BufWriter::with_capacity(BUFFER_CAPACITY, output_file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user