public static void ArcLand() { ExecuteCommand.ExecuteArc("arc land"); ArrayList lines = new ArrayList(); lines.Add("Executing Arc Land"); GxConsoleHandler.GitConsoleWriter(lines, "KBCodeReview - Execute Arc land", true); }
public static void GitCommit() { string result = ExecuteCommand.Execute("git add ."); GxConsoleHandler.GitConsoleWriter(result, "KBCodeReviewer - Execute Git add ."); string gitcommit = "git commit -m " + '"' + "default message" + '"'; result = ExecuteCommand.Execute(gitcommit); GxConsoleHandler.GitConsoleWriter(result, "KBCodeReviewer - Execute Git commit"); }
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"); }