-
Notifications
You must be signed in to change notification settings - Fork 71
pdpdevtool 6104 update thirdparty libraries #915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
pdpdevtool 6104 update thirdparty libraries #915
Conversation
const { COLORS, BOLD } = await import('./LoggerFontConstants.mjs'); | ||
return { COLORS, BOLD }; | ||
}; | ||
const LoggerConstants = loadLoggerConstants(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make the code a tiny bit more readable, I suggest to
rename LoggerConstants
to something like LoggerConstantsPromise
or LoggerFormatterPromise
...
…and separator with getters
// const mainAnswers = await prompt([ | ||
// { | ||
// type: 'list', | ||
// name: 'type', | ||
// message: 'What object type would you like to create?', | ||
// choices: OBJECT_TYPES, | ||
// }, | ||
// { | ||
// type: 'input', | ||
// name: 'objectfilename', | ||
// message: (answers_1) => `Please specify the filename for the ${chalk.green.bold(answers_1.type.name)} object`, | ||
// transformer: (input_1, answers_2, flags) => `${answers_2.type.prefix}${input_1}.xml`, | ||
// }, | ||
// { | ||
// type: 'list', | ||
// name: 'folder', | ||
// message: (answers_4) => | ||
// `Where would you like to store the ${chalk.green.bold(answers_4.type.prefix + answers_4.objectfilename + '.xml')} file?`, | ||
// choices: objectDirectoryChoices, | ||
// }, | ||
// { | ||
// type: 'confirm', | ||
// name: 'createrelatedfiles', | ||
// message: 'Would you like to also create associated files with this object?', | ||
// when: (answers_6) => answers_6.type.hasRelatedFiles, | ||
// }, | ||
// ]); | ||
// if (mainAnswers.createrelatedfiles) { | ||
// const fileCabinetDirectoryChoices = this._fileSystemService | ||
// .getFoldersFromDirectory(join(this._projectFolder, FOLDERS.FILE_CABINET)) | ||
// .map(transformFoldersToChoicesFunc); | ||
// const answers_10 = await prompt([ | ||
// { | ||
// type: 'input', | ||
// name: 'relatedfilename', | ||
// message: 'Please specify the script filename', | ||
// transformer: (input_3, answers_7, flags) => `${input_3}.js`, | ||
// }, | ||
// { | ||
// type: 'list', | ||
// name: 'relatedfiledestinationfolder', | ||
// message: (answers_9) => `Where would you like to store the ${chalk.green.bold(answers_9.relatedfilename)}.js file?`, | ||
// choices: fileCabinetDirectoryChoices, | ||
// }, | ||
// ]); | ||
// return { ...answers_10, ...mainAnswers }; | ||
// } | ||
// return mainAnswers; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look right to me.
Is this purposeful?
No description provided.