// promptMessage prompts the user for the commit message func promptMessage(commit *meta.Commit) error { fmt.Println("Enter a message for this commit:") buf, err := ioutil.ReadAll(os.Stdin) if err != nil { return err } commit.Message = strings.TrimSpace(string(buf)) return nil }