refactor: update dummy args structure for status mode compatibility
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -196,11 +196,35 @@ async fn handle_status(
|
|||||||
return Err(StatusCode::UNAUTHORIZED);
|
return Err(StatusCode::UNAUTHORIZED);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create dummy command and args for compatibility with status mode functions
|
// Create dummy args for compatibility with status mode functions
|
||||||
let mut cmd = Command::new("keep");
|
|
||||||
let args = crate::Args {
|
let args = crate::Args {
|
||||||
mode: crate::Mode::Status { output_format: None },
|
mode: crate::ModeArgs {
|
||||||
options: Default::default(),
|
save: false,
|
||||||
|
get: false,
|
||||||
|
diff: false,
|
||||||
|
list: false,
|
||||||
|
update: false,
|
||||||
|
delete: false,
|
||||||
|
info: false,
|
||||||
|
status: true,
|
||||||
|
server: None,
|
||||||
|
},
|
||||||
|
item: crate::ItemArgs {
|
||||||
|
meta: Vec::new(),
|
||||||
|
digest: None,
|
||||||
|
compression: None,
|
||||||
|
meta_plugins: Vec::new(),
|
||||||
|
},
|
||||||
|
options: crate::OptionsArgs {
|
||||||
|
dir: None,
|
||||||
|
list_format: "id,time,size,tags,meta:hostname".to_string(),
|
||||||
|
human_readable: false,
|
||||||
|
verbose: 0,
|
||||||
|
quiet: false,
|
||||||
|
output_format: None,
|
||||||
|
server_password: None,
|
||||||
|
},
|
||||||
|
ids_or_tags: Vec::new(),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Determine which meta plugins would be enabled for a save operation
|
// Determine which meta plugins would be enabled for a save operation
|
||||||
|
|||||||
Reference in New Issue
Block a user