-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: add dry run flag to cue mod publish
We add a `--dryrun` flag to the publish command to enable the user to see what would be published. We also include a `--json` flag to print all available information in JSON format, including the list of files that's incorporated into the module. We also include `--out` flag to cause the command to write the module information into an image directory in a standard format (see https://github.com/opencontainers/image-spec/blob/8f3820ccf8f65db8744e626df17fe8a64462aece/image-layout.md). We also change the publish command to print a well-formed OCI reference that refers to the pushed image. Fixes #3046 Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I9e88aa75300d00882a68adaf14effedb37744069 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194090 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
- Loading branch information
Showing
8 changed files
with
401 additions
and
15 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
Oops, something went wrong.