From 3247ea117a5bfa3a5ca38f14a608d46855ebe7a4 Mon Sep 17 00:00:00 2001 From: Kuruyia <8174691+Kuruyia@users.noreply.github.com> Date: Fri, 2 Dec 2022 15:27:17 +0100 Subject: [PATCH] feat: support limiting the PaaS logs amount --- src/commands/paas/logs.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/commands/paas/logs.ts b/src/commands/paas/logs.ts index 23bdfe81..4b611730 100644 --- a/src/commands/paas/logs.ts +++ b/src/commands/paas/logs.ts @@ -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 = [ @@ -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