From f4f5f962d3ab21d09f808192cfdcfddc2f5e4daa Mon Sep 17 00:00:00 2001 From: Kuruyia Date: Mon, 13 May 2024 15:23:12 +0200 Subject: [PATCH] feat: add nicer result logs for PaaS snapshot commands --- src/commands/paas/snapshots/cat.ts | 3 ++- src/commands/paas/snapshots/dump.ts | 3 ++- src/commands/paas/snapshots/restore.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/commands/paas/snapshots/cat.ts b/src/commands/paas/snapshots/cat.ts index decada66..2d0ef6c9 100644 --- a/src/commands/paas/snapshots/cat.ts +++ b/src/commands/paas/snapshots/cat.ts @@ -53,7 +53,8 @@ class PaasSnapshotsCat extends PaasKommand { body: {}, }); - this.logInfo(JSON.stringify(result, null, 2)); + this.logOk("Snapshots of your PaaS application:"); + this.logOk(JSON.stringify(result, null, 2)); } } diff --git a/src/commands/paas/snapshots/dump.ts b/src/commands/paas/snapshots/dump.ts index 738866c2..10823356 100644 --- a/src/commands/paas/snapshots/dump.ts +++ b/src/commands/paas/snapshots/dump.ts @@ -53,7 +53,8 @@ class PaasSnapshotsDump extends PaasKommand { body: {}, }); - this.logOk(result.body); + this.logInfo(JSON.stringify(result.body)); + this.logOk("Your snapshot is being created."); } } diff --git a/src/commands/paas/snapshots/restore.ts b/src/commands/paas/snapshots/restore.ts index 64be1569..2a49bfe0 100644 --- a/src/commands/paas/snapshots/restore.ts +++ b/src/commands/paas/snapshots/restore.ts @@ -58,7 +58,7 @@ class PaasSnapshotsRestore extends PaasKommand { snapshotId: this.args.snapshotId }); - this.logInfo("Ok"); + this.logOk("Your snapshot is being restored."); } }