MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / importNotes

Method importNotes

cmdtools/cmdlinetool.cpp:688–696  ·  view source on GitHub ↗

Import notes from a nnex file.

Source from the content-addressed store, hash-verified

686
687// Import notes from a nnex file.
688int CmdLineTool::importNotes(StartupConfig config) {
689 if (global.sharedMemory->attach()) {
690 std::cout << tr("This cannot be done with NixNote running.").toStdString() << endl;
691 return 16;
692 }
693 global.db = new DatabaseConnection("nixnote"); // Startup the database
694 config.importNotes->import();
695 return 0;
696}
697
698
699// Alter a note's notebook or add/remove tags for a note.

Callers

nothing calls this directly

Calls 2

attachMethod · 0.80
importMethod · 0.45

Tested by

no test coverage detected