forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user