You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/05/30 17:49:17 UTC

incubator-mynewt-newt git commit: newt - Clone current blinky with "newt new".

Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/090_dev b1ef668f6 -> f0a27b629


newt - Clone current blinky with "newt new".


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/f0a27b62
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/f0a27b62
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/f0a27b62

Branch: refs/heads/090_dev
Commit: f0a27b6294c25b85c2a7a1e465c5d36ef467054d
Parents: b1ef668
Author: Christopher Collins <cc...@apache.org>
Authored: Mon May 30 10:48:41 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Mon May 30 10:48:41 2016 -0700

----------------------------------------------------------------------
 newt/cli/project_cmds.go  | 3 ++-
 newt/newt.go              | 4 ++--
 newt/newtutil/newtutil.go | 3 +++
 3 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/f0a27b62/newt/cli/project_cmds.go
----------------------------------------------------------------------
diff --git a/newt/cli/project_cmds.go b/newt/cli/project_cmds.go
index 7bf03b7..abe7e3d 100644
--- a/newt/cli/project_cmds.go
+++ b/newt/cli/project_cmds.go
@@ -27,6 +27,7 @@ import (
 	"github.com/spf13/cobra"
 	"mynewt.apache.org/newt/newt/downloader"
 	"mynewt.apache.org/newt/newt/interfaces"
+	"mynewt.apache.org/newt/newt/newtutil"
 	"mynewt.apache.org/newt/newt/project"
 	"mynewt.apache.org/newt/util"
 )
@@ -52,7 +53,7 @@ func newRunCmd(cmd *cobra.Command, args []string) {
 	dl.User = "apache"
 	dl.Repo = "incubator-mynewt-blinky"
 
-	dir, err := dl.DownloadRepo("mynewt_0_8_0_b2_tag")
+	dir, err := dl.DownloadRepo(newtutil.NewtBlinkyTag)
 	if err != nil {
 		NewtUsage(cmd, err)
 	}

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/f0a27b62/newt/newt.go
----------------------------------------------------------------------
diff --git a/newt/newt.go b/newt/newt.go
index a39b80f..30105fa 100644
--- a/newt/newt.go
+++ b/newt/newt.go
@@ -26,10 +26,10 @@ import (
 	"github.com/spf13/cobra"
 
 	"mynewt.apache.org/newt/newt/cli"
+	"mynewt.apache.org/newt/newt/newtutil"
 	"mynewt.apache.org/newt/util"
 )
 
-var NewtVersionStr string = "Apache Newt (incubating) version: 0.9.0"
 var NewtLogLevel log.Level
 var newtSilent bool
 var newtQuiet bool
@@ -103,7 +103,7 @@ func newtCmd() *cobra.Command {
 		Long:    versHelpText,
 		Example: versHelpEx,
 		Run: func(cmd *cobra.Command, args []string) {
-			fmt.Printf("%s\n", NewtVersionStr)
+			fmt.Printf("%s\n", newtutil.NewtVersionStr)
 		},
 	}
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/f0a27b62/newt/newtutil/newtutil.go
----------------------------------------------------------------------
diff --git a/newt/newtutil/newtutil.go b/newt/newtutil/newtutil.go
index 4fee488..0daa992 100644
--- a/newt/newtutil/newtutil.go
+++ b/newt/newtutil/newtutil.go
@@ -29,6 +29,9 @@ import (
 	"mynewt.apache.org/newt/viper"
 )
 
+var NewtVersionStr string = "Apache Newt (incubating) version: 0.9.0"
+var NewtBlinkyTag string = "mynewt_0_9_0_tag"
+
 func GetStringFeatures(v *viper.Viper, features map[string]bool,
 	key string) string {
 	val := v.GetString(key)