Skip to content
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

+errorReport #34

Merged
merged 3 commits into from
Dec 19, 2023
Merged

+errorReport #34

merged 3 commits into from
Dec 19, 2023

Conversation

geoffhendrey
Copy link
Contributor

Description

#31

adds $errorReport function

Type of Change

  • Bug Fix
  • [ x] New Feature
  • Breaking Change
  • Refactor
  • [ x] Documentation
  • Other (please describe)

Checklist

  • [ x] I have read the contributing guidelines
  • [ x] Existing issues have been referenced (where applicable)
  • [ x] I have verified this change is not present in other open pull requests
  • [ x] Functionality is documented
  • [ x] All code style checks pass
  • [ x] New code contribution is covered by automated tests
  • [ x] All new and existing tests pass

@geoffhendrey geoffhendrey requested a review from a team as a code owner December 19, 2023 04:26
Copy link
Member

@zhirafovod zhirafovod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, a few nit comments

const key = metaInfo.jsonPointer__ as string;
if(this.errorReport[key] === undefined){
this.errorReport[key] = error;
}else if (Array.isArray(this.errorReport[key])){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to cover these cases with a test?

@@ -31,7 +31,7 @@ export default class CliCore {
constructor(templateProcessor: TemplateProcessor = null) {
this.templateProcessor = templateProcessor;
this.logLevel = "info";
this.currentDirectory = path.join(process.cwd(), 'example'); // Default to cwd/example
this.currentDirectory = process.cwd();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think defaulting to example directory was quite good experience for most cases.

@geoffhendrey geoffhendrey merged commit a9e9a63 into main Dec 19, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants