-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue/cmd: add fix command for new-style definitions
This adds a new fix command. As converting configurations to new-style defintions can no longer be done syntactically and is not guaranteed to succeed, this could no longer be piggybacked on fmt. This changes adds the implementation of converting new-style definitions. The conversion is not complete. Firstly, not all old configurations can be converted to new-style definitions. The converter detects this and suggests changes to the user. Also, due to API limitations, not all convertable cases are handled by the converter. These cases are also detected and reported. Change-Id: I88c4010b15ea07250dc456fd84b2603b473ae5c1 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/6067 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
- Loading branch information
Showing
19 changed files
with
1,279 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.