Beispiel #1
0
func askForChangelogPath() (string, error) {
	fmt.Println()
	answer, err := goinp.AskForStringWithDefault("Type in changelog path!", defaultChangelogPath)
	if err != nil {
		return "", err
	}
	if answer == "" {
		answer = defaultChangelogPath
	}
	return answer, nil
}
Beispiel #2
0
func askForReleaseVersion() (string, error) {
	fmt.Println()
	answer, err := goinp.AskForStringWithDefault("Type in the new release version!", defaultFirstReleaseVersion)
	if err != nil {
		return "", err
	}
	if answer == "" {
		answer = defaultFirstReleaseVersion
	}
	return answer, nil
}