mirror of
https://github.com/ouch-org/ouch.git
synced 2025-07-18 23:50:35 +00:00
fix subcommand
This commit is contained in:
parent
a4ff65f44c
commit
3a8cc9edda
@ -108,7 +108,7 @@ pub enum Subcommand {
|
||||
/// Disable Smart Unpack
|
||||
#[arg(long)]
|
||||
no_smart_unpack: bool,
|
||||
|
||||
|
||||
/// Mark sandbox as disabled
|
||||
#[arg(long, global = true)]
|
||||
disable_sandbox: bool,
|
||||
@ -280,6 +280,7 @@ mod tests {
|
||||
fast: false,
|
||||
slow: false,
|
||||
follow_symlinks: false,
|
||||
disable_sandbox: true,
|
||||
},
|
||||
format: Some("tar.gz".into()),
|
||||
..mock_cli_args()
|
||||
|
@ -11,7 +11,7 @@ use crate::{
|
||||
commands::warn_user_about_loading_zip_in_memory,
|
||||
extension::CompressionFormat::{self, *},
|
||||
list::{self, FileInArchive, ListOptions},
|
||||
utils::{io::lock_and_flush_output_stdio, user_wants_to_continue, landlock},
|
||||
utils::{io::lock_and_flush_output_stdio, landlock, user_wants_to_continue},
|
||||
QuestionAction, QuestionPolicy, BUFFER_CAPACITY,
|
||||
};
|
||||
|
||||
|
@ -48,7 +48,6 @@ fn run() -> Result<()> {
|
||||
//let working_dir = args.output_dir
|
||||
// .clone()
|
||||
// .unwrap_or_else(|| env::current_dir().unwrap_or_default());
|
||||
|
||||
// restrict filesystem access to working_dir;
|
||||
// 1. working_dir is either the output_dir specified by the -d option or
|
||||
// 2. it is the temporary .tmp-ouch-XXXXXX directory that is renamed after decompression
|
||||
|
Loading…
x
Reference in New Issue
Block a user