MCPcopy Index your code
hub / github.com/dnote/dnote / getName

Function getName

pkg/cli/cmd/edit/book.go:59–70  ·  view source on GitHub ↗
(ctx context.DnoteCtx)

Source from the content-addressed store, hash-verified

57}
58
59func 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
72func runBook(ctx context.DnoteCtx, bookName string) error {
73 err := validateRunBookFlags()

Callers 1

runBookFunction · 0.85

Calls 1

waitEditorBookNameFunction · 0.85

Tested by

no test coverage detected