feat(cli): add --version flag (#29)

This commit is contained in:
Julian Tölle 2024-08-25 13:47:55 +02:00 committed by GitHub
parent a67b510284
commit 1ede0bef10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 28 additions and 26 deletions

View file

@ -8,7 +8,6 @@ import (
rp "github.com/apricote/releaser-pleaser"
)
// runCmd represents the run command
var runCmd = &cobra.Command{
Use: "run",
RunE: run,
@ -25,8 +24,6 @@ var (
func init() {
rootCmd.AddCommand(runCmd)
// Here you will define your flags and configuration settings.
runCmd.PersistentFlags().StringVar(&flagForge, "forge", "", "")
runCmd.PersistentFlags().StringVar(&flagBranch, "branch", "main", "")
runCmd.PersistentFlags().StringVar(&flagOwner, "owner", "", "")