MCPcopy Create free account
hub / github.com/YACReader/yacreader / updateLibrary

Function updateLibrary

YACReaderLibraryServer/main.cpp:297–314  ·  view source on GitHub ↗

----------------------------------------------------------------------------- update-library--------------------------------------------------------------- -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

295// update-library---------------------------------------------------------------
296// -----------------------------------------------------------------------------
297int updateLibrary(QCoreApplication &app, QCommandLineParser &parser, QSettings *settings)
298{
299 parser.clearPositionalArguments();
300 parser.addPositionalArgument("update-library", "Updates an existing library at <path>");
301 parser.addPositionalArgument("path", "Path to the library to be updated", "<path>");
302 parser.process(app);
303
304 const QStringList args = parser.positionalArguments();
305 if (args.length() != 2) {
306 parser.showHelp(1);
307 return 1;
308 }
309
310 ConsoleUILibraryCreator *libraryCreatorUI = new ConsoleUILibraryCreator(settings);
311 libraryCreatorUI->updateLibrary(args.at(1));
312
313 return 0;
314}
315
316// -----------------------------------------------------------------------------
317// add-library---------------------------------------------------------------

Callers 2

mainFunction · 0.85
startUpdateMethod · 0.85

Calls 2

processMethod · 0.45
updateLibraryMethod · 0.45

Tested by

no test coverage detected