()
| 29 | ) |
| 30 | |
| 31 | func validateRunNoteFlags() error { |
| 32 | if nameFlag != "" { |
| 33 | return errors.New("--name is invalid for editing a book") |
| 34 | } |
| 35 | |
| 36 | return nil |
| 37 | } |
| 38 | |
| 39 | func waitEditorNoteContent(ctx context.DnoteCtx, note database.Note) (string, error) { |
| 40 | fpath, err := ui.GetTmpContentPath(ctx) |