Add normal logs for deps build subcommands

This commit is contained in:
Wojtek Figat
2023-12-15 13:41:37 +01:00
parent 8eb68a905e
commit 3761eb5a1e
7 changed files with 54 additions and 54 deletions

View File

@@ -136,14 +136,14 @@ namespace Flax.Deps
if (submodules)
cmdLine += " --recurse-submodules";
Utilities.Run("git", cmdLine, null, null, Utilities.RunOptions.None);
Utilities.Run("git", cmdLine, null, null, Utilities.RunOptions.ConsoleLogOutput);
if (submodules)
Utilities.Run("git", "submodule update --init --recursive", null, null, Utilities.RunOptions.None);
Utilities.Run("git", "submodule update --init --recursive", null, null, Utilities.RunOptions.ConsoleLogOutput);
}
if (commit != null)
{
Utilities.Run("git", string.Format("reset --hard {0}", commit), null, null, Utilities.RunOptions.None);
Utilities.Run("git", string.Format("reset --hard {0}", commit), null, null, Utilities.RunOptions.ConsoleLogOutput);
}
}
@@ -164,9 +164,9 @@ namespace Flax.Deps
if (submodules)
cmdLine += " --recurse-submodules";
Utilities.Run("git", cmdLine, null, null, Utilities.RunOptions.None);
Utilities.Run("git", cmdLine, null, null, Utilities.RunOptions.ConsoleLogOutput);
if (submodules)
Utilities.Run("git", "submodule update --init --recursive", null, null, Utilities.RunOptions.None);
Utilities.Run("git", "submodule update --init --recursive", null, null, Utilities.RunOptions.ConsoleLogOutput);
}
}
@@ -191,14 +191,14 @@ namespace Flax.Deps
if (submodules)
cmdLine += " --recurse-submodules";
Utilities.Run("git", cmdLine, null, null, Utilities.RunOptions.None);
Utilities.Run("git", cmdLine, null, null, Utilities.RunOptions.ConsoleLogOutput);
if (submodules)
Utilities.Run("git", "submodule update --init --recursive", null, null, Utilities.RunOptions.None);
Utilities.Run("git", "submodule update --init --recursive", null, null, Utilities.RunOptions.ConsoleLogOutput);
}
if (commit != null)
{
Utilities.Run("git", string.Format("reset --hard {0}", commit), null, path, Utilities.RunOptions.None);
Utilities.Run("git", string.Format("reset --hard {0}", commit), null, path, Utilities.RunOptions.ConsoleLogOutput);
}
}
@@ -218,13 +218,13 @@ namespace Flax.Deps
if (submodules)
cmdLine += " --recurse-submodules";
Utilities.Run("git", cmdLine, null, path, Utilities.RunOptions.None);
Utilities.Run("git", cmdLine, null, path, Utilities.RunOptions.ConsoleLogOutput);
if (submodules)
Utilities.Run("git", "submodule update --init --recursive", null, null, Utilities.RunOptions.None);
Utilities.Run("git", "submodule update --init --recursive", null, null, Utilities.RunOptions.ConsoleLogOutput);
if (commit != null)
{
Utilities.Run("git", string.Format("reset --hard {0}", commit), null, path, Utilities.RunOptions.None);
Utilities.Run("git", string.Format("reset --hard {0}", commit), null, path, Utilities.RunOptions.ConsoleLogOutput);
}
}
@@ -234,7 +234,7 @@ namespace Flax.Deps
/// <param name="path">The local path that contains git repository.</param>
public static void GitResetLocalChanges(string path)
{
Utilities.Run("git", "reset --hard", null, path, Utilities.RunOptions.None);
Utilities.Run("git", "reset --hard", null, path, Utilities.RunOptions.ConsoleLogOutput);
}
/// <summary>
@@ -313,7 +313,7 @@ namespace Flax.Deps
if (customArgs != null)
cmdLine += " " + customArgs;
Utilities.Run("cmake", cmdLine, null, path, Utilities.RunOptions.None, envVars);
Utilities.Run("cmake", cmdLine, null, path, Utilities.RunOptions.ConsoleLogOutput, envVars);
}
/// <summary>