Skip to content

Commit

Permalink
feat: support limiting the PaaS logs amount
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuruyia committed Dec 2, 2022
1 parent 89e4138 commit 3247ea1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/commands/paas/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ class PaasLogs extends PaasKommand {
project: flags.string({
description: "Current PaaS project",
}),
tail: flags.integer({
char: "n",
description: "Number of lines to show from the end of the logs",
}),
};

static args = [
Expand Down Expand Up @@ -101,6 +105,7 @@ class PaasLogs extends PaasKommand {
projectId: this.flags.project || this.getProject(),
applicationId: this.args.application,
follow: this.flags.follow,
tailLines: this.flags.tail,
});

// Read the response line by line
Expand Down

0 comments on commit 3247ea1

Please sign in to comment.