tooling for generating upstream PRs (including exportify) - #20
Merged
Conversation
Member
Author
|
cc/ @Joxit I think you're going to like this 😄 |
…specifying which fixes to apply manually eg "--hierarchies"
…mport" command to write files a stream of features to the filesystem
Member
Author
|
Member
|
Yeah ! That's pretty cool ! |
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.
This PR contains a bunch of commands required to author this PR, these make generating patches to WOF 💯 times easier 🎉
Summary:
wof fs import <dir>takes a stream of WOF features and writes them to a filesystem, it creates the nested directory structure if required and optionally runs the WOF 'exportify' tool via docker, this makes them ready to merge upstream 😱wof feature exportify, same as above except it's streams-in & streams-out (basically just a convenient way of running 'exportify' which supports streams)wof sqlite fix <db>command:--hierarchiesis nowfalseby default and developers will need to explicitly specify which fixes they would like to apply--catflag which prints any documents which were fixed tostdout--dryrunflag which prevents the DB from being updated, this operation takes time so it's convenient to skip it when using the--catflag in some workflowsSo the cool thing about all this is that it's now possible to write a
through2stream to update WOF records and then write them back to the repo ready for a PR!It's even possible to import them to a SQLite db and use the rest of the collection to fix integrity issues and again write it back to the filesystem ready for a PR 🧙
Eg: