forked from toolshed/abra
		
	refactor: readability
This commit is contained in:
		| @ -17,16 +17,20 @@ func PromptBumpType(tagString string) error { | ||||
|   minor: new features/bug fixes, backwards compatible | ||||
|   patch: bug fixes, backwards compatible | ||||
| `) | ||||
|  | ||||
| 		var chosenBumpType string | ||||
| 		prompt := &survey.Select{ | ||||
| 			Message: fmt.Sprintf("select recipe version increment type"), | ||||
| 			Options: []string{"major", "minor", "patch"}, | ||||
| 		} | ||||
|  | ||||
| 		if err := survey.AskOne(prompt, &chosenBumpType); err != nil { | ||||
| 			return err | ||||
| 		} | ||||
|  | ||||
| 		SetBumpType(chosenBumpType) | ||||
| 	} | ||||
|  | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user