Add support for specifying properties from the typewriter cli#178
Merged
MIchaelMainer merged 7 commits intodevfrom Feb 8, 2019
Merged
Add support for specifying properties from the typewriter cli#178MIchaelMainer merged 7 commits intodevfrom
MIchaelMainer merged 7 commits intodevfrom
Conversation
…peWriter CLI. Fixed test metadata.
…in a test run for Typewriter. The TemplateProcessor host needs to be reset for the case when we target a new language. Otherwise the wrong *CodeWriter will be used and an unsupported cast will occur in the templates when trying to cast host.CodeWriter to the platform specific CodeWriter. The change to ConfigurationService.Settings is also required to reset the settings for configuring the TemplateWriter.
peombwa
approved these changes
Feb 6, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Typewriter can now support properties to be specified from the CLI and used in the templates. This option should only be used when:
The specified properties can be accessed from the templates. We needed this for beta PHP file generation since it uses a different namespace.
The attached file demonstrates the file generated from the test case where it injects a custom namespace.
Entity.txt
Change summary