ccollins476ad closed pull request #68: Remove hardcoded "newtmgr" strings.
URL: https://github.com/apache/mynewt-newtmgr/pull/68
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/newtmgr/cli/commands.go b/newtmgr/cli/commands.go
index 585243c..0c30c5b 100644
--- a/newtmgr/cli/commands.go
+++ b/newtmgr/cli/commands.go
@@ -37,7 +37,7 @@ func Commands() *cobra.Command {
        logLevelStr := ""
        nmCmd := &cobra.Command{
                Use:   nmutil.ToolInfo.ExeName,
-               Short: nmutil.ToolInfo.ShortName + " helps you manage remote 
devices running the Mynewt OS",
+               Short: nmutil.ToolInfo.ShortName + " helps you manage remote 
devices",
                PersistentPreRun: func(cmd *cobra.Command, args []string) {
                        NewtmgrLogLevel, err := log.ParseLevel(logLevelStr)
                        if err != nil {
diff --git a/newtmgr/cli/interactive.go b/newtmgr/cli/interactive.go
index a8a957e..09bd105 100644
--- a/newtmgr/cli/interactive.go
+++ b/newtmgr/cli/interactive.go
@@ -3,9 +3,9 @@ package cli
 import (
        "container/list"
        "fmt"
-       "gopkg.in/abiosoft/ishell.v1"
        "github.com/runtimeco/go-coap"
        "github.com/spf13/cobra"
+       "gopkg.in/abiosoft/ishell.v1"
        "mynewt.apache.org/newt/util"
        "mynewt.apache.org/newtmgr/newtmgr/nmutil"
        "mynewt.apache.org/newtmgr/nmxact/nmxutil"
@@ -508,9 +508,10 @@ func startInteractive(cmd *cobra.Command, args []string) {
 func interactiveCmd() *cobra.Command {
 
        shellCmd := &cobra.Command{
-               Use:   "interactive",
-               Short: "Run newtmgr interactive mode (used for COAP only)",
-               Run:   startInteractive,
+               Use: "interactive",
+               Short: "Run " + nmutil.ToolInfo.ShortName +
+                       " interactive mode (used for COAP only)",
+               Run: startInteractive,
        }
 
        return shellCmd


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to