You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presently, configtxlator only exposes its functions through a REST API.
This is convenient for cross-language compatibility, but it forces CLI
users to fall back to writing CURL commands. This CR simply exposes the
update computation logic directly via the CLI.
Change-Id: Ifc5e7e33d0a9cb43d181a3c77843d41827938397
Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
protoDecodeSource=protoDecode.Flag("input", "A file containing the proto message.").Default(os.Stdin.Name()).File()
54
56
protoDecodeDest=protoDecode.Flag("output", "A file to write the JSON document to.").Default(os.Stdout.Name()).OpenFile(os.O_RDWR|os.O_CREATE, 0600)
55
57
58
+
computeUpdate=app.Command("compute_update", "Takes two marshaled common.Config messages and computes the config update which transitions between the two.")
59
+
computeUpdateOriginal=computeUpdate.Flag("original", "The original config message.").File()
60
+
computeUpdateUpdated=computeUpdate.Flag("updated", "The updated config message.").File()
61
+
computeUpdateChannelID=computeUpdate.Flag("channel_id", "The name of the channel for this update.").Required().String()
62
+
computeUpdateDest=computeUpdate.Flag("output", "A file to write the JSON document to.").Default(os.Stdout.Name()).OpenFile(os.O_RDWR|os.O_CREATE, 0600)
63
+
56
64
version=app.Command("version", "Show version information")
0 commit comments