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/07/19 20:01:15 UTC
incubator-mynewt-newt git commit: Cobra changed how it outputs help
text
Repository: incubator-mynewt-newt
Updated Branches:
refs/heads/develop 847641b85 -> c33896135
Cobra changed how it outputs help text
See https://github.com/spf13/cobra/pull/305
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/c3389613
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/c3389613
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/c3389613
Branch: refs/heads/develop
Commit: c33896135a1a151974e6a2d30df08889dd620b76
Parents: 847641b
Author: spoonofpower <sp...@gmail.com>
Authored: Mon Jul 18 15:49:32 2016 -0700
Committer: spoonofpower <sp...@gmail.com>
Committed: Mon Jul 18 15:49:32 2016 -0700
----------------------------------------------------------------------
newtmgr/cli/commands.go | 2 +-
newtmgr/cli/connprofile.go | 2 +-
newtmgr/cli/image.go | 2 +-
newtmgr/cli/logs.go | 2 +-
newtmgr/cli/usage.go | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/c3389613/newtmgr/cli/commands.go
----------------------------------------------------------------------
diff --git a/newtmgr/cli/commands.go b/newtmgr/cli/commands.go
index 1696a3d..d40dc4d 100644
--- a/newtmgr/cli/commands.go
+++ b/newtmgr/cli/commands.go
@@ -42,7 +42,7 @@ func Commands() *cobra.Command {
}
},
Run: func(cmd *cobra.Command, args []string) {
- cmd.Help()
+ cmd.HelpFunc()(cmd, args)
},
}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/c3389613/newtmgr/cli/connprofile.go
----------------------------------------------------------------------
diff --git a/newtmgr/cli/connprofile.go b/newtmgr/cli/connprofile.go
index 19511e0..35a059e 100644
--- a/newtmgr/cli/connprofile.go
+++ b/newtmgr/cli/connprofile.go
@@ -123,7 +123,7 @@ func connProfileCmd() *cobra.Command {
Use: "conn",
Short: "Manage newtmgr connection profiles",
Run: func(cmd *cobra.Command, args []string) {
- cmd.Help()
+ cmd.HelpFunc()(cmd, args)
},
}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/c3389613/newtmgr/cli/image.go
----------------------------------------------------------------------
diff --git a/newtmgr/cli/image.go b/newtmgr/cli/image.go
index 382371e..aa9eff5 100644
--- a/newtmgr/cli/image.go
+++ b/newtmgr/cli/image.go
@@ -618,7 +618,7 @@ func imageCmd() *cobra.Command {
Use: "image",
Short: "Manage images on remote instance",
Run: func(cmd *cobra.Command, args []string) {
- cmd.Help()
+ cmd.HelpFunc()(cmd, args)
},
}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/c3389613/newtmgr/cli/logs.go
----------------------------------------------------------------------
diff --git a/newtmgr/cli/logs.go b/newtmgr/cli/logs.go
index eaa175d..f5c892b 100644
--- a/newtmgr/cli/logs.go
+++ b/newtmgr/cli/logs.go
@@ -315,7 +315,7 @@ func logsCmd() *cobra.Command {
Use: "logs",
Short: "Handles logs on remote instance",
Run: func(cmd *cobra.Command, args []string) {
- cmd.Help()
+ cmd.HelpFunc()(cmd, args)
},
}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/c3389613/newtmgr/cli/usage.go
----------------------------------------------------------------------
diff --git a/newtmgr/cli/usage.go b/newtmgr/cli/usage.go
index fa19311..0553727 100644
--- a/newtmgr/cli/usage.go
+++ b/newtmgr/cli/usage.go
@@ -32,7 +32,7 @@ func nmUsage(cmd *cobra.Command, err error) {
}
if cmd != nil {
- cmd.Help()
+ cmd.HelpFunc()(cmd, nil)
}
os.Exit(1)