(ctx context.DnoteCtx)
| 57 | } |
| 58 | |
| 59 | func getName(ctx context.DnoteCtx) (string, error) { |
| 60 | if nameFlag != "" { |
| 61 | return nameFlag, nil |
| 62 | } |
| 63 | |
| 64 | c, err := waitEditorBookName(ctx) |
| 65 | if err != nil { |
| 66 | return "", errors.Wrap(err, "Failed to get editor input") |
| 67 | } |
| 68 | |
| 69 | return c, nil |
| 70 | } |
| 71 | |
| 72 | func runBook(ctx context.DnoteCtx, bookName string) error { |
| 73 | err := validateRunBookFlags() |
no test coverage detected