Process: Get rid of ProcessInterpreter

Move it locally to the only one user: VcsCommand.

For the future similar usages: use ProcessTask
and tweak the DoneResult inside TaskDoneHandler.

Change-Id: Icdffee7f1963f3ff377bfa6309e14bd1862a2c1f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2024-01-17 00:21:44 +01:00
parent 6042f6fde4
commit 443ce8e164
7 changed files with 10 additions and 33 deletions

View File

@@ -29,6 +29,8 @@ namespace Internal { class VcsCommandPrivate; }
class VcsCommand;
using ExitCodeInterpreter = std::function<Utils::ProcessResult(int /*exitCode*/)>;
class VCSBASE_EXPORT CommandResult
{
public:
@@ -70,7 +72,7 @@ public:
void addJob(const Utils::CommandLine &command, int timeoutS,
const Utils::FilePath &workingDirectory = {},
const Utils::ExitCodeInterpreter &interpreter = {});
const ExitCodeInterpreter &interpreter = {});
void start();
void addFlags(RunFlags f);