private static bool GitExecute(string commandName, out string result) { bool success; ExecuteCommand.Execute(commandName, out result, out success); ArrayList lines = new ArrayList(); lines.Add(result); GxConsoleHandler.GitConsoleWriter(lines, "[" + Resources.AppName + "]: - Execute " + commandName, true); return(success); }
//--------------------------------GIT----------------------------------------------------------------------------- public static void GitInit() { string path = KBCodeReviewHelper.GetKBCodeReviewDirectory() + "/.git"; if (!Directory.Exists(path)) { string result = ExecuteCommand.Execute("git init"); GxConsoleHandler.GitConsoleWriter(result, "KBCodeReviewer - Execute Git Init"); } else { GxConsoleHandler.GitConsoleWriter("Git was already initialized", "KBCodeReviewer - Execute Git Init"); } }
public static void ArcLand() { ExecuteCommand.ExecuteArc("arc land"); GxConsoleHandler.GitConsoleWriter("Executing Arc Land", "KBCodeReviewer - Execute Arc land"); }