feat: Added a new command to the main managarr CLI: tail-logs, to enable users to tail the Managarr logs without needing to know where the log file itself is located

This commit is contained in:
2024-11-09 16:18:43 -07:00
parent 28f7bc6a4c
commit b6f5b9d08c
3 changed files with 74 additions and 2 deletions
+2
View File
@@ -30,6 +30,7 @@ use tokio::select;
use tokio::sync::mpsc::Receiver;
use tokio::sync::{mpsc, Mutex};
use tokio_util::sync::CancellationToken;
use utils::tail_logs;
use crate::app::App;
use crate::cli::Command;
@@ -124,6 +125,7 @@ async fn main() -> Result<()> {
let mut cli = Cli::command();
generate(shell, &mut cli, "managarr", &mut io::stdout())
}
Command::TailLogs { no_color } => tail_logs(no_color).await,
},
None => {
let app_nw = Arc::clone(&app);