1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-29 01:44:39 +02:00

chore: cli: added aliases for release and init

This commit is contained in:
Carlos Alexandro Becker 2018-03-11 12:09:19 -03:00
parent 2231742e76
commit a2d89651da
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -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()