feat(logs): implement streaming logs with follow option

This commit is contained in:
hdbg
2025-12-06 20:22:43 +01:00
parent 676c53fabb
commit c6929255e3
4 changed files with 71 additions and 48 deletions

View File

@@ -35,7 +35,10 @@ async fn main() -> Result<()> {
ControlCommands::Stop => {}
ControlCommands::Restart => {}
ControlCommands::Destroy { accept } => {}
ControlCommands::Logs { follow } => todo!(),
ControlCommands::Logs { follow } => {
let ctx = Context::new(name).await?;
Controller::new(ctx).logs(follow).await?;
}
ControlCommands::Status => {}
// can't override an instance for this command, because password is in config
ControlCommands::Connection { format } => {