Removing status and env commands because glide no longer manager GOPATH which these helped with.
diff --git a/cmd/status.go b/cmd/status.go
deleted file mode 100644
index d26d033..0000000
--- a/cmd/status.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package cmd
-
-import (
- "os"
-
- "github.com/Masterminds/cookoo"
-)
-
-// Status is a command that prints the status of the glide and expected gopath.
-func Status(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt) {
-
- vpath, err := VendorPath(c)
- if err != nil {
- Error("Could not get vendor path: %s", err)
- }
-
- gopath := os.Getenv("GOPATH")
-
- Info("Vendor path is: %s\n", vpath)
- Info("GOPATH is: %s\n", gopath)
-
- stat, err := os.Stat(vpath)
- if err != nil {
- Error("Error with vendor path: %s\n", err)
- Info("Did you forget to do a `glide init`?\n")
- return false, nil
- }
- if !stat.IsDir() {
- Error("vendir is not a directory.\n")
- return false, nil
- }
-
- return true, nil
-}
diff --git a/glide.go b/glide.go
index 2d050ac..6c59854 100644
--- a/glide.go
+++ b/glide.go
@@ -62,8 +62,8 @@
- package: github.com/kylelemons/go-gypsy
subpackages: yaml
-NOTE: As of Glide 0.5, the commands 'in', 'into', and 'gopath' no
-longer exist.
+NOTE: As of Glide 0.5, the commands 'in', 'into', 'gopath', 'status', and 'env'
+no longer exist.
`
var VendorDir = "vendor"
@@ -194,16 +194,6 @@
},
},
{
- Name: "env",
- ShortName: "gopath",
- Usage: "Display environment variables for the present project",
- Description: `Emits the environment for the current project. Useful for
- things like manually setting GOPATH: GOPATH=$(glide gopath)`,
- Action: func(c *cli.Context) {
- setupHandler(c, "env", cxt, router)
- },
- },
- {
Name: "name",
Usage: "Print the name of this project.",
Description: `Read the glide.yaml file and print the name given on the 'package' line.`,
@@ -258,14 +248,6 @@
},
},
{
- Name: "status",
- ShortName: "s",
- Usage: "Display a status report",
- Action: func(c *cli.Context) {
- setupHandler(c, "status", cxt, router)
- },
- },
- {
Name: "update",
ShortName: "up",
Aliases: []string{"install"},
@@ -457,10 +439,6 @@
Using("filename").From("cxt:yaml").
Using("project").From("cxt:project").WithDefault("main")
- reg.Route("env", "Print environment").
- Includes("@startup").
- Does(cmd.Status, "status")
-
reg.Route("name", "Print environment").
Includes("@startup").
Includes("@ready").
@@ -472,10 +450,6 @@
Does(cmd.NoVendor, "paths").
Does(cmd.PathString, "out").Using("paths").From("cxt:paths")
- reg.Route("status", "Status").
- Includes("@startup").
- Does(cmd.Status, "status")
-
reg.Route("about", "Status").
Includes("@startup").
Does(cmd.About, "about")