From 34a4c983867bc3982768257c36b9ebb5a9720e96 Mon Sep 17 00:00:00 2001 From: Jake Runzer Date: Sun, 4 Oct 2020 17:47:46 -0600 Subject: [PATCH] rename use command to environment --- cmd/{use.go => environment.go} | 2 +- main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename cmd/{use.go => environment.go} (83%) diff --git a/cmd/use.go b/cmd/environment.go similarity index 83% rename from cmd/use.go rename to cmd/environment.go index a6ec9eaa4..b6fcbab67 100644 --- a/cmd/use.go +++ b/cmd/environment.go @@ -7,7 +7,7 @@ import ( "github.com/railwayapp/cli/ui" ) -func (h *Handler) Use(ctx context.Context, req *entity.CommandRequest) error { +func (h *Handler) Environment(ctx context.Context, req *entity.CommandRequest) error { projectID, err := h.cfg.GetProject() if err != nil { return err diff --git a/main.go b/main.go index 82a15d31e..f6492ca2a 100644 --- a/main.go +++ b/main.go @@ -73,9 +73,9 @@ func init() { RunE: contextualize(handler.Status), }) rootCmd.AddCommand(&cobra.Command{ - Use: "use", + Use: "environment", Short: "Select an environment", - RunE: contextualize(handler.Use), + RunE: contextualize(handler.Environment), }) rootCmd.AddCommand(&cobra.Command{ Use: "open",