mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-04 01:24:09 +02:00
log count
This commit is contained in:
parent
ff6e771520
commit
794a69f17b
3 changed files with 9 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue