You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/03/09 21:23:37 UTC
[22/50] incubator-mynewt-newt git commit: remove empty project and
package commands
remove empty project and package commands
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/ec236857
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/ec236857
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/ec236857
Branch: refs/heads/develop
Commit: ec236857976e5c02b07b9f870443738b9b129b88
Parents: 4542bb4
Author: Sterling Hughes <st...@apache.org>
Authored: Tue Mar 8 16:37:01 2016 -0800
Committer: Sterling Hughes <st...@apache.org>
Committed: Tue Mar 8 16:37:01 2016 -0800
----------------------------------------------------------------------
newt/pkg/cmds.go | 14 --------------
newt/project/cmds.go | 36 ------------------------------------
2 files changed, 50 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/ec236857/newt/pkg/cmds.go
----------------------------------------------------------------------
diff --git a/newt/pkg/cmds.go b/newt/pkg/cmds.go
index 9eaf27e..53c4559 100644
--- a/newt/pkg/cmds.go
+++ b/newt/pkg/cmds.go
@@ -21,19 +21,5 @@ package pkg
import "github.com/spf13/cobra"
-func pkgRunCmd(cmd *cobra.Command, args []string) {
-}
-
func AddCommands(cmd *cobra.Command) {
- pkgHelpText := ""
- pkgHelpEx := ""
- pkgCmd := &cobra.Command{
- Use: "package",
- Short: "Commands for manipulating packages",
- Long: pkgHelpText,
- Example: pkgHelpEx,
- Run: pkgRunCmd,
- }
-
- cmd.AddCommand(pkgCmd)
}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/ec236857/newt/project/cmds.go
----------------------------------------------------------------------
diff --git a/newt/project/cmds.go b/newt/project/cmds.go
index 44f56be..eb08b2a 100644
--- a/newt/project/cmds.go
+++ b/newt/project/cmds.go
@@ -21,12 +21,10 @@ package project
import (
"fmt"
- "os"
"github.com/spf13/cobra"
"mynewt.apache.org/newt/newt/cli"
"mynewt.apache.org/newt/newt/interfaces"
- "mynewt.apache.org/newt/util"
)
var Force bool = false
@@ -53,41 +51,7 @@ func upgradeRunCmd(cmd *cobra.Command, args []string) {
fmt.Println("Repos successfully upgrade")
}
-func projectRunCmd(cmd *cobra.Command, args []string) {
- wd, err := os.Getwd()
- if err != nil {
- cli.NewtUsage(cmd, util.NewNewtError(err.Error()))
- }
-
- proj, err := LoadProject(wd)
- if err != nil {
- cli.NewtUsage(cmd, err)
- }
- proj.LoadPackageList()
-
- for rName, list := range proj.PackageList() {
- fmt.Printf("repository name: %s\n", rName)
- for pkgName, _ := range *list {
- fmt.Printf(" %s\n", pkgName)
- }
- }
-
- fmt.Printf("Project %s\n", proj.Name)
- fmt.Printf(" BasePath: %s\n", proj.BasePath)
-}
-
func AddCommands(cmd *cobra.Command) {
- projectHelpText := ""
- projectHelpEx := ""
- projectCmd := &cobra.Command{
- Use: "project",
- Short: "Command for manipulating projects",
- Long: projectHelpText,
- Example: projectHelpEx,
- Run: projectRunCmd,
- }
- cmd.AddCommand(projectCmd)
-
installHelpText := ""
installHelpEx := ""
installCmd := &cobra.Command{