This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
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: simplify parseArgs in preparation of proto support
The parseArgs code had some pretty complicated logic. This now separates out the cases for normal instances and user-selected files to avoid at least one level of comingling. The goal of this refactoring is to ultimately allow schema and value files to be separated early on, which, in turn, will allow schema values to be computed early. Such schema will then allow value formats to be interpreted by the type of which they will ultimately land in CUE. This is necessary to parse protobuf, which cannot be parsed without a schema. Issue #5 Change-Id: I2046948a8cf9bc5425ed437247dc89416d0fff76
- Loading branch information
Showing
2 changed files
with
65 additions
and
51 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
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