diff options
author | Jake Petroules <jake.petroules@qt.io> | 2016-05-22 17:19:38 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2016-05-23 08:06:08 +0000 |
commit | bf1667e8e1aae74ff85583452afc06caa4a01d22 (patch) | |
tree | 3a6981fb778486c906ddcccc085677bc21cef541 /src/lib/corelib/tools | |
parent | 12c2eaee9f27ddfa1ac8232fdf04577223927cf6 (diff) |
Add a new command line echo mode that also prints environment variables.
Change-Id: I88213103519ae4f69fedb4fe535c9c44e3b61d03
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/lib/corelib/tools')
-rw-r--r-- | src/lib/corelib/tools/commandechomode.cpp | 4 | ||||
-rw-r--r-- | src/lib/corelib/tools/commandechomode.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/corelib/tools/commandechomode.cpp b/src/lib/corelib/tools/commandechomode.cpp index 87f1aa6bc..e3814fd4e 100644 --- a/src/lib/corelib/tools/commandechomode.cpp +++ b/src/lib/corelib/tools/commandechomode.cpp @@ -36,6 +36,8 @@ * \value CommandEchoModeSilent Indicates that no output will be printed. * \value CommandEchoModeSummary Indicates that descriptions will be printed. * \value CommandEchoModeCommandLine Indidcates that full command line invocations will be printed. + * \value CommandEchoModeCommandLineWithEnvironment Indidcates that full command line invocations, + * including environment variables, will be printed. */ namespace qbs { @@ -54,6 +56,8 @@ QString commandEchoModeName(CommandEchoMode mode) return QLatin1String("summary"); case CommandEchoModeCommandLine: return QLatin1String("command-line"); + case CommandEchoModeCommandLineWithEnvironment: + return QLatin1String("command-line-with-environment"); default: break; } diff --git a/src/lib/corelib/tools/commandechomode.h b/src/lib/corelib/tools/commandechomode.h index e59f3bf14..f6fe517e1 100644 --- a/src/lib/corelib/tools/commandechomode.h +++ b/src/lib/corelib/tools/commandechomode.h @@ -41,7 +41,8 @@ enum CommandEchoMode { CommandEchoModeSilent, CommandEchoModeSummary, CommandEchoModeCommandLine, - CommandEchoModeLast = CommandEchoModeCommandLine + CommandEchoModeCommandLineWithEnvironment, + CommandEchoModeLast = CommandEchoModeCommandLineWithEnvironment }; QBS_EXPORT CommandEchoMode defaultCommandEchoMode(); |