This is an automated email from the ASF dual-hosted git repository. ccollins pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git
commit 9041b05ac66832d5ad617bcc667d269087ab1c6a Author: Christopher Collins <ccoll...@apache.org> AuthorDate: Mon Nov 12 12:45:50 2018 -0800 Allow key list to be specified in `newt run`. --- newt/cli/run_cmds.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/newt/cli/run_cmds.go b/newt/cli/run_cmds.go index 49a2e4d..d3f3ed9 100644 --- a/newt/cli/run_cmds.go +++ b/newt/cli/run_cmds.go @@ -88,11 +88,20 @@ func runRunCmd(cmd *cobra.Command, args []string) { } if len(version) > 0 { - _, _, err = b.CreateImages(version, "", 0) + var keystrs []string + var keyId uint8 + + if len(args) > 2 { + keystrs, keyId, err = parseKeyArgs(args[2:]) + if err != nil { + NewtUsage(cmd, err) + } + } + + _, _, err = b.CreateImages(version, keystrs, keyId) if err != nil { NewtUsage(cmd, err) } - } if err := b.Load(extraJtagCmd); err != nil { @@ -113,6 +122,8 @@ func AddRunCommands(cmd *cobra.Command) { " - debug <target>\n\n" + "Note if version number is omitted, create-image step is skipped\n" runHelpEx := " newt run <target-name> [<version>]\n" + runHelpEx += + " newt run -2 my_target1 1.3.0.3 private-1.pem private-2.pem\n" runCmd := &cobra.Command{ Use: "run",