Skip to content

Commit

Permalink
chore: add nicer result logs for PaaS snapshot commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuruyia committed May 13, 2024
1 parent aec943b commit ab776c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/commands/paas/snapshots/cat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/commands/paas/snapshots/dump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/paas/snapshots/restore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class PaasSnapshotsRestore extends PaasKommand {
snapshotId: this.args.snapshotId
});

this.logInfo("Ok");
this.logOk("Your snapshot is being restored.");
}
}

Expand Down

0 comments on commit ab776c7

Please sign in to comment.