MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / runCommand

Function runCommand

syncthing/interface.cpp:272–280  ·  view source on GitHub ↗

! * \brief Runs the Syncthing command using the specified \a arguments. */

Source from the content-addressed store, hash-verified

270 * \brief Runs the Syncthing command using the specified \a arguments.
271 */
272long long runCommand(const std::vector<const char *> &arguments)
273{
274 if (arguments.empty()) {
275 setArguments("serve", std::vector<const char *>::const_iterator(), std::vector<const char *>::const_iterator());
276 } else {
277 setArguments(arguments.front(), ++arguments.begin(), arguments.end());
278 }
279 return ::libst_run_main();
280}
281
282/*!
283 * \brief Verifies \a data with the specified \a pubKeyPEM and \a signature.

Callers 2

main.cppFile · 0.85
testRunCommandMethod · 0.85

Calls 1

setArgumentsFunction · 0.85

Tested by 1

testRunCommandMethod · 0.68