Skip to content

Commit

Permalink
Rename local deps run to deps upgrade (with update to deps update)
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Jan 19, 2021
1 parent d8867cf commit 6d87421
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/deps/run.go → cmd/deps/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import (
"github.com/spf13/cobra"
)

var runCmd = &cobra.Command{
Use: "run",
Short: "Run deps on the current directory",
var upgradeCmd = &cobra.Command{
Use: "upgrade",
Aliases: []string{"update"},
Short: "Locally upgrade deps in the current directory",
Run: func(cmd *cobra.Command, args []string) {
if err := runner.Local(); err != nil {
printErrAndExitFailure(err)
Expand All @@ -16,5 +17,5 @@ var runCmd = &cobra.Command{
}

func init() {
rootCmd.AddCommand(runCmd)
rootCmd.AddCommand(upgradeCmd)
}

0 comments on commit 6d87421

Please sign in to comment.