Пример #1
0
        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);
        }
Пример #2
0
        //--------------------------------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");
            }
        }
Пример #3
0
 public static void ArcLand()
 {
     ExecuteCommand.ExecuteArc("arc land");
     GxConsoleHandler.GitConsoleWriter("Executing Arc Land", "KBCodeReviewer - Execute Arc land");
 }