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

Function validateRunBookFlags

pkg/cli/cmd/edit/book.go:30–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28)
29
30func 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
41func waitEditorBookName(ctx context.DnoteCtx) (string, error) {
42 fpath, err := ui.GetTmpContentPath(ctx)

Callers 1

runBookFunction · 0.85

Calls 1

NewMethod · 0.80

Tested by

no test coverage detected