MCPcopy
hub / github.com/syncthing/syncthing / main

Function main

script/translate.go:198–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196}
197
198func main() {
199 fd, err := os.Open(os.Args[1])
200 if err != nil {
201 log.Fatal(err)
202 }
203 err = json.NewDecoder(fd).Decode(&trans)
204 if err != nil {
205 log.Fatal(err)
206 }
207 fd.Close()
208
209 guiDir := os.Args[2]
210
211 filepath.Walk(guiDir, walkerFor(guiDir))
212 collectThemes(guiDir)
213
214 bs, err := json.MarshalIndent(trans, "", " ")
215 if err != nil {
216 log.Fatal(err)
217 }
218 os.Stdout.Write(bs)
219 os.Stdout.WriteString("\n")
220}

Callers

nothing calls this directly

Calls 7

collectThemesFunction · 0.85
FatalMethod · 0.80
walkerForFunction · 0.70
OpenMethod · 0.65
CloseMethod · 0.65
WalkMethod · 0.65
WriteMethod · 0.45

Tested by

no test coverage detected