feat: Finalize CLI logging
parent
c2768194cd
commit
724f56f20b
|
@ -125,7 +125,7 @@ const handleAction = async (syncType, skipConfirm, configType, partials) => {
|
||||||
// Preform the action.
|
// Preform the action.
|
||||||
if (skipConfirm || answer.confirm) {
|
if (skipConfirm || answer.confirm) {
|
||||||
if (syncType === 'import') {
|
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 {
|
try {
|
||||||
await Promise.all(Object.keys(finalDiff).map(async (name) => {
|
await Promise.all(Object.keys(finalDiff).map(async (name) => {
|
||||||
let warning;
|
let warning;
|
||||||
|
@ -143,7 +143,7 @@ const handleAction = async (syncType, skipConfirm, configType, partials) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (syncType === 'export') {
|
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 {
|
try {
|
||||||
await Promise.all(Object.keys(finalDiff).map(async (name) => {
|
await Promise.all(Object.keys(finalDiff).map(async (name) => {
|
||||||
|
|
Loading…
Reference in New Issue