Proper support for fork + for from directory + solution show #342
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.
Description
Implemented a new internal object to read and keep in memory the full solution, with all its files.
Added
solution show
command that displays solution's elements: for now, list of files with annotation of their contents (e.g., knowledge vs. object, object type, etc.)Added support for
solution fork
from a local directory, as this helps primers/tutorials/workshops and works around the restricted ability to download solutions from other tenants.Modified the fork capability to not just do global replace (which can inadvertently replace more than necessary and break a solution); instead, it ensures that only values are changed (never keys) and only on word boundary. Additional exceptions are handled, such as renaming the namespace file (which is usually named after the solution name).
Retained the old fork capability for backward compatibility, under a
--legacy-replace
flag, in case the new algorithm doesn't take care of some cases that are covered in tutorials and workshops.Type of Change
Checklist