Skip to content

Commit

Permalink
Add dc and up as aliases for delete-cache and update.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshStrobl committed Nov 20, 2017
1 parent eef38f4 commit 7c67252
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/solbuild/cmd/delete_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ import (
)

var deleteCacheCmd = &cobra.Command{
Use: "delete-cache",
Short: "delete solbuild cached files",
Long: `Delete assets stored on disk by solbuild`,
Run: deleteCache,
Use: "delete-cache",
Short: "delete solbuild cached files",
Long: `Delete assets stored on disk by solbuild`,
Aliases: []string{"dc"},
Run: deleteCache,
}

// Whether we nuke *all* assets, i.e. sources too
Expand Down
3 changes: 2 additions & 1 deletion src/solbuild/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ var updateCmd = &cobra.Command{
Short: "update a solbuild profile",
Long: `Update the base image of the specified solbuild profile, helping to
minimize the build times in future updates with this profile.`,
Run: updateProfile,
Aliases: []string{"up"},
Run: updateProfile,
}

func init() {
Expand Down

0 comments on commit 7c67252

Please sign in to comment.