MCPcopy
hub / github.com/afar1/fieldtheory-cli / requireData

Function requireData

src/cli.ts:603–617  ·  view source on GitHub ↗

Check that bookmarks have been synced. Returns true if data exists.

()

Source from the content-addressed store, hash-verified

601
602/** Check that bookmarks have been synced. Returns true if data exists. */
603function requireData(): boolean {
604 if (isFirstRun()) {
605 console.log(`
606 No bookmarks synced yet.
607
608 Get started:
609
610 1. Open your browser and log into x.com
611 2. Run: ft sync
612`);
613 process.exitCode = 1;
614 return false;
615 }
616 return true;
617}
618
619/** Check that the search index exists. Returns true if it does. */
620function requireIndex(): boolean {

Callers 2

requireIndexFunction · 0.85
buildCliFunction · 0.85

Calls 1

isFirstRunFunction · 0.85

Tested by

no test coverage detected