()
| 28 | ) |
| 29 | |
| 30 | func validateRunBookFlags() error { |
| 31 | if contentFlag != "" { |
| 32 | return errors.New("--content is invalid for editing a book") |
| 33 | } |
| 34 | if bookFlag != "" { |
| 35 | return errors.New("--book is invalid for editing a book") |
| 36 | } |
| 37 | |
| 38 | return nil |
| 39 | } |
| 40 | |
| 41 | func waitEditorBookName(ctx context.DnoteCtx) (string, error) { |
| 42 | fpath, err := ui.GetTmpContentPath(ctx) |