Skip to content

Commit c16231a

Browse files
authored
chore(ps:logs): support pod all logs
1 parent c0ec89f commit c16231a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

parser/ps.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ Options:
9696

9797
app := safeGetString(args, "--app")
9898
lines := safeGetInt(args, "--lines")
99-
if lines <= 0 {
99+
if lines < 0 {
100+
lines = -1
101+
} else if lines == 0 {
100102
lines = 300
101103
}
102104
follow := safeGetBool(args, "--follow")

0 commit comments

Comments
 (0)