CommandDelete: refactor: split handle to several methods

This commit is contained in:
2019-04-09 22:03:04 +02:00
parent 03320ad6eb
commit 071bddf28d
2 changed files with 81 additions and 56 deletions

View File

@@ -8,6 +8,10 @@ class CommandDelete : public Command
using Command::Command;
int handle(QStringList arguments) override;
private:
int removeNonExistent(QSqlDatabase &db, bool verbose, bool dryRun, QString pattern);
int removePaths(const QStringList &paths, QSqlDatabase &db, bool verbose, bool dryRun);
};
#endif // COMMANDDELETE_H