MCPcopy Index your code
hub / github.com/syncthing/syncthing / runCommand

Function runCommand

build.go:275–363  ·  view source on GitHub ↗
(cmd string, target target)

Source from the content-addressed store, hash-verified

273}
274
275func runCommand(cmd string, target target) {
276 var tags []string
277 if noupgrade {
278 tags = []string{"noupgrade"}
279 }
280 tags = append(tags, strings.Fields(extraTags)...)
281
282 switch cmd {
283 case "install":
284 install(target, tags)
285 metalintShort()
286
287 case "build":
288 build(target, tags)
289
290 case "test":
291 test(strings.Fields(extraTags), "github.com/syncthing/syncthing/internal/...", "github.com/syncthing/syncthing/lib/...", "github.com/syncthing/syncthing/cmd/...")
292
293 case "bench":
294 bench(strings.Fields(extraTags), "github.com/syncthing/syncthing/internal/...", "github.com/syncthing/syncthing/lib/...", "github.com/syncthing/syncthing/cmd/...")
295
296 case "integration":
297 integration(false)
298
299 case "integrationbench":
300 integration(true)
301
302 case "assets":
303 rebuildAssets()
304
305 case "update-deps":
306 updateDependencies()
307
308 case "proto":
309 proto()
310
311 case "testmocks":
312 testmocks()
313
314 case "translate":
315 translate()
316
317 case "transifex":
318 transifex()
319
320 case "weblate":
321 weblate()
322
323 case "tar":
324 buildTar(target, tags)
325 writeCompatJSON()
326
327 case "zip":
328 buildZip(target, tags)
329 writeCompatJSON()
330
331 case "deb":
332 buildDeb(target, tags)

Callers 1

mainFunction · 0.85

Calls 15

buildFunction · 0.90
installFunction · 0.85
metalintShortFunction · 0.85
benchFunction · 0.85
integrationFunction · 0.85
rebuildAssetsFunction · 0.85
updateDependenciesFunction · 0.85
protoFunction · 0.85
testmocksFunction · 0.85
translateFunction · 0.85
transifexFunction · 0.85
weblateFunction · 0.85

Tested by

no test coverage detected