Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/cmd/cue-ast: add "join" command
When reducing CUE bug reproducers, I often begin from the evaluation of a CUE package instance. It is easier to reduce a single CUE file rather than multiple files, as one can load it into an editor and quickly delete chunks of it or search through it. While this is not hard to do, it's tedious for a human; the package declarations need to be removed, and the imports joined at the top of the new file. This is, however, easy to do in Go. Signed-off-by: Daniel Martí <[email protected]> Change-Id: Ibf89de45ae6ec5d88037f7417d00aa2129cd73e0 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200356 Reviewed-by: Roger Peppe <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information