Skip to content

Commit

Permalink
Merge pull request #16 from JoshStrobl/aliases
Browse files Browse the repository at this point in the history
Add dc and up as aliases for delete-cache and update.
  • Loading branch information
ikeydoherty authored Nov 20, 2017
2 parents eef38f4 + 7c67252 commit 139b3e9
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 139b3e9

Please sign in to comment.