You've already forked go-semantic-release
fix(cmd): don't print current dir in help text
This commit is contained in:
@@ -31,11 +31,7 @@ func Execute(version string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
currentDir, err := os.Getwd()
|
rootCmd.PersistentFlags().StringP("repository", "r", "./", "Path to repository")
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
rootCmd.PersistentFlags().StringP("repository", "r", currentDir, "Path to repository")
|
|
||||||
rootCmd.PersistentFlags().StringP("loglevel", "l", "error", "Set loglevel")
|
rootCmd.PersistentFlags().StringP("loglevel", "l", "error", "Set loglevel")
|
||||||
rootCmd.PersistentFlags().StringP("config", "c", ".release.yml", "Path to config file")
|
rootCmd.PersistentFlags().StringP("config", "c", ".release.yml", "Path to config file")
|
||||||
rootCmd.PersistentFlags().Bool("no-cache", false, "Ignore cache, don't use in ci build")
|
rootCmd.PersistentFlags().Bool("no-cache", false, "Ignore cache, don't use in ci build")
|
||||||
|
|||||||
Reference in New Issue
Block a user