From a2d89651da906f2a1a48b628d846aa28e8ead6a1 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sun, 11 Mar 2018 12:09:19 -0300 Subject: [PATCH] chore: cli: added aliases for release and init --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index f26b0b867..ff86d94dd 100644 --- a/main.go +++ b/main.go @@ -90,8 +90,8 @@ func main() { defer fmt.Println() var app = kingpin.New("goreleaser", "Deliver Go binaries as fast and easily as possible") - var initCmd = app.Command("init", "Generates a .goreleaser.yml file") - var releaseCmd = app.Command("release", "Releases the current project").Default() + var initCmd = app.Command("init", "Generates a .goreleaser.yml file").Alias("i") + var releaseCmd = app.Command("release", "Releases the current project").Alias("r").Default() var config = releaseCmd.Flag("config", "Load configuration from file").Short('c').Short('f').PlaceHolder(".goreleaser.yml").String() var releaseNotes = releaseCmd.Flag("release-notes", "Load custom release notes from a markdown file").PlaceHolder("notes.md").String() var snapshot = releaseCmd.Flag("snapshot", "Generate an unversioned snapshot release, skipping all validations and without publishing any artifacts").Bool()