From 7c672526fb69b203ce6ff510fc700bd06a73760c Mon Sep 17 00:00:00 2001 From: Joshua Strobl Date: Mon, 20 Nov 2017 23:17:27 +0200 Subject: [PATCH] Add dc and up as aliases for delete-cache and update. --- src/solbuild/cmd/delete_cache.go | 9 +++++---- src/solbuild/cmd/update.go | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/solbuild/cmd/delete_cache.go b/src/solbuild/cmd/delete_cache.go index acd7644..bd01176 100644 --- a/src/solbuild/cmd/delete_cache.go +++ b/src/solbuild/cmd/delete_cache.go @@ -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 diff --git a/src/solbuild/cmd/update.go b/src/solbuild/cmd/update.go index 23ad3f2..0978b70 100644 --- a/src/solbuild/cmd/update.go +++ b/src/solbuild/cmd/update.go @@ -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() {