MCPcopy Index your code
hub / github.com/breck7/scroll / updateIdsCommand

Method updateIdsCommand

ScrollSetCLI.js:97–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 }
96
97 async updateIdsCommand() {
98 this.concepts.forEach(file => {
99 const dest = path.join(this.conceptsFolder, file.filename)
100 const particle = new Particle(Disk.read(dest))
101 const newParticle = particle.toString().replace(
102 `import ../code/conceptPage.scroll
103id `,
104 `import ../code/conceptPage.scroll
105id ${file.filename.replace(".scroll", "")}
106name `
107 )
108 Disk.write(dest, newParticle.toString())
109 })
110 }
111
112 // todo: can we use parsersBundle from scroll.js?
113 buildParsersFileCommand() {

Callers

nothing calls this directly

Calls 7

toStringMethod · 0.95
forEachMethod · 0.80
replaceMethod · 0.80
joinMethod · 0.45
readMethod · 0.45
writeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected