feat: export logs feature, closes #1

Save logs to a file.
 `--logs-dir` cli arg to change from the default location.

Refactor of input_handler
This commit is contained in:
Jack Wills
2023-11-19 16:03:18 +00:00
parent abde07b5f6
commit a15da5ed43
11 changed files with 325 additions and 170 deletions
+2 -2
View File
@@ -133,9 +133,9 @@ impl ExecMode {
}
let use_cli = app_data.lock().args.use_cli;
let container = app_data.lock().get_selected_container_id_state();
let container = app_data.lock().get_selected_container_id_state_name();
if let Some((id, state)) = container {
if let Some((id, state, _)) = container {
if state == State::Running {
if tty_readable() && !use_cli {
if let Ok(exec) = docker