// 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 }