feat: Finalize CLI logging

pull/33/head
Boaz Poolman 2021-12-29 00:05:01 +01:00
parent c2768194cd
commit 724f56f20b
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ const handleAction = async (syncType, skipConfirm, configType, partials) => {
// Preform the action.
if (skipConfirm || answer.confirm) {
if (syncType === 'import') {
const onSuccess = (name) => console.log(`${chalk.cyan.bold('[notice]')} Imported ${name} (${getConfigState(diff, name, syncType)})`);
const onSuccess = (name) => console.log(`${chalk.cyan.bold('[notice]')} Imported ${name}`);
try {
await Promise.all(Object.keys(finalDiff).map(async (name) => {
let warning;
@ -143,7 +143,7 @@ const handleAction = async (syncType, skipConfirm, configType, partials) => {
}
}
if (syncType === 'export') {
const onSuccess = (name) => console.log(`${chalk.cyan.bold('[notice]')} Exported ${name} (${getConfigState(diff, name, syncType)})`);
const onSuccess = (name) => console.log(`${chalk.cyan.bold('[notice]')} Exported ${name}`);
try {
await Promise.all(Object.keys(finalDiff).map(async (name) => {