From f408122d82590a72d0703d31881eb54bc23b0257 Mon Sep 17 00:00:00 2001 From: Boaz Poolman Date: Wed, 10 Nov 2021 16:36:30 +0100 Subject: [PATCH] fix: 'no diff' notice for diff command --- server/cli.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/cli.js b/server/cli.js index 04ddfd8..e7755a7 100644 --- a/server/cli.js +++ b/server/cli.js @@ -166,6 +166,12 @@ program const app = await strapi().load(); const diff = await app.plugin('config-sync').service('main').getFormattedDiff(); + // No changes. + if (isEmpty(diff.diff)) { + console.log(`${chalk.cyan('[notice]')} There is no config diff, you are up to date.`); + process.exit(0); + } + // Init table. const table = initTable();