예제 #1
0
파일: commit.go 프로젝트: skirkpatrick/svc
// promptTitle prompts the user for the commit title
func promptTitle(commit *meta.Commit) error {
	fmt.Println("Enter a title for this commit:")
	buf, err := ioutil.ReadAll(os.Stdin)
	if err != nil {
		return err
	}
	commit.Title = strings.TrimSpace(string(buf))
	return nil
}