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

Method printConfig

cli/application.cpp:768–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768void Application::printConfig(const ArgumentOccurrence &)
769{
770 // disable main event loop since this method is invoked directly as argument callback and we're doing all required async operations during the waitForConfig() call already
771 m_requiresMainEventLoop = false;
772
773 if (!waitForConfig()) {
774 return;
775 }
776 cerr << Phrases::Override;
777 cout << QJsonDocument(m_connection.rawConfig()).toJson(QJsonDocument::Indented).data() << flush;
778}
779
780void Application::editConfig(const ArgumentOccurrence &)
781{

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected