1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-04 01:24:09 +02:00

log count

This commit is contained in:
Robin Appelman 2021-03-14 21:17:03 +01:00
commit 794a69f17b
3 changed files with 9 additions and 4 deletions

View file

@ -57,9 +57,9 @@ async fn main() -> Result<()> {
let cloud = Cloud::get_by_filter(&mut docker, filter, &config).await?;
cloud.destroy(&mut docker).await?;
}
HazeArgs::Logs { filter } => {
HazeArgs::Logs { filter, count } => {
let cloud = Cloud::get_by_filter(&mut docker, filter, &config).await?;
let logs = cloud.logs(&mut docker).await?;
let logs = cloud.logs(&mut docker, count.unwrap_or(20)).await?;
for log in logs {
print!("{}", log);
}