forked from qt-creator/qt-creator
RunFlags: Group flags into QtcProcess related
Some flags directly relate to QtcProcess setup. Group them together. Reorder other flags to keep related next to each other. Modify some descriptions. Change-Id: I8694fb5ca0edd7e770a084d7d1d890d48a13a347 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -8,16 +8,19 @@
|
|||||||
namespace VcsBase {
|
namespace VcsBase {
|
||||||
|
|
||||||
enum class RunFlags {
|
enum class RunFlags {
|
||||||
None = 0, // Empty
|
None = 0, // Empty.
|
||||||
ShowStdOut = (1 << 0), // Show standard output.
|
// QtcProcess related
|
||||||
MergeOutputChannels = (1 << 1), // See QProcess: Merge stderr/stdout.
|
MergeOutputChannels = (1 << 0), // See QProcess::ProcessChannelMode::MergedChannels.
|
||||||
SuppressStdErr = (1 << 2), // Suppress standard error output.
|
ForceCLocale = (1 << 1), // Force C-locale, sets LANG and LANGUAGE env vars to "C".
|
||||||
SuppressFailMessage = (1 << 3), // No message about command failure.
|
UseEventLoop = (1 << 2), // Use event loop when executed in UI thread with
|
||||||
SuppressCommandLogging = (1 << 4), // No command log entry.
|
// runBlocking().
|
||||||
ShowSuccessMessage = (1 << 5), // Show message about successful completion of command.
|
// Decorator related
|
||||||
ForceCLocale = (1 << 6), // Force C-locale for commands whose output is parsed.
|
SuppressStdErr = (1 << 3), // Suppress standard error output.
|
||||||
SilentOutput = (1 << 7), // Suppress user notifications about the output happening.
|
SuppressFailMessage = (1 << 4), // No message about command failure.
|
||||||
UseEventLoop = (1 << 8), // Use event loop when executed in UI thread.
|
SuppressCommandLogging = (1 << 5), // No starting command log entry.
|
||||||
|
ShowSuccessMessage = (1 << 6), // Show message about successful completion of command.
|
||||||
|
ShowStdOut = (1 << 7), // Show standard output.
|
||||||
|
SilentOutput = (1 << 8), // Only when ShowStdOut is set to true, outputs silently.
|
||||||
ExpectRepoChanges = (1 << 9), // Expect changes in repository by the command
|
ExpectRepoChanges = (1 << 9), // Expect changes in repository by the command
|
||||||
NoOutput = SuppressStdErr | SuppressFailMessage | SuppressCommandLogging
|
NoOutput = SuppressStdErr | SuppressFailMessage | SuppressCommandLogging
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user