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