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

Function getPathReport

src/field-status.ts:47–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47export function getPathReport(): FieldTheoryPathReport {
48 const legacyDir = legacyDataDir();
49 const legacyMdDir = path.join(legacyDir, 'md');
50 return {
51 fieldTheoryDir: fieldTheoryDir(),
52 active: {
53 bookmarksDir: dataDir(),
54 libraryDir: libraryDir(),
55 commandsDir: commandsDir(),
56 mediaDir: bookmarkMediaDir(),
57 mediaManifestPath: bookmarkMediaManifestPath(),
58 bookmarksCachePath: twitterBookmarksCachePath(),
59 bookmarksIndexPath: twitterBookmarksIndexPath(),
60 },
61 canonical: {
62 bookmarksDir: canonicalDataDir(),
63 libraryDir: canonicalLibraryDir(),
64 commandsDir: canonicalCommandsDir(),
65 },
66 env: {
67 FT_DATA_DIR: process.env.FT_DATA_DIR,
68 FT_LIBRARY_DIR: process.env.FT_LIBRARY_DIR,
69 FT_COMMANDS_DIR: process.env.FT_COMMANDS_DIR,
70 },
71 legacy: {
72 bookmarksDir: legacyDir,
73 exists: fs.existsSync(legacyDir),
74 mdDir: legacyMdDir,
75 mdExists: fs.existsSync(legacyMdDir),
76 },
77 };
78}
79
80export function formatPathReport(report: FieldTheoryPathReport): string {
81 const lines = [

Callers 2

buildCliFunction · 0.85

Calls 12

legacyDataDirFunction · 0.85
fieldTheoryDirFunction · 0.85
dataDirFunction · 0.85
libraryDirFunction · 0.85
commandsDirFunction · 0.85
bookmarkMediaDirFunction · 0.85
canonicalDataDirFunction · 0.85
canonicalLibraryDirFunction · 0.85
canonicalCommandsDirFunction · 0.85

Tested by

no test coverage detected