MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / run

Method run

Source/Wasm/WasmRuntime.cpp:2857–2876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2855}
2856
2857int64_t Git::run(String repoPath, String command, const std::function<void(String)>& callback, String optionsJSON) {
2858#ifdef DORA_NO_WA
2859 DORA_UNUSED_PARAM(repoPath);
2860 DORA_UNUSED_PARAM(command);
2861 DORA_UNUSED_PARAM(optionsJSON);
2862 return runJob(0, repoPath, "run"_slice, callback);
2863#else // !DORA_NO_WA
2864 auto repoPathStr = repoPath.toString();
2865 auto commandStr = command.toString();
2866 auto optionsJSONStr = optionsJSON.toString();
2867 return runJob(
2868 WaGitRun(
2869 c_cast<char*>(repoPathStr.c_str()),
2870 c_cast<char*>(commandStr.c_str()),
2871 c_cast<char*>(optionsJSONStr.c_str())),
2872 repoPath,
2873 "run"_slice,
2874 callback);
2875#endif // !DORA_NO_WA
2876}
2877
2878int64_t WasmRuntime::gitStartClone(String url, String path, String branch, String token, int depth) {
2879#ifdef DORA_NO_WA

Callers

nothing calls this directly

Calls 4

runJobFunction · 0.85
WaGitRunFunction · 0.70
toStringMethod · 0.65
c_strMethod · 0.45

Tested by

no test coverage detected