Exemple #1
0
 public void Push()
 {
     foreach (var item in m_targets.GetJavaOMISelected())
     {
         GitJOMI.Push(item);
     }
 }
Exemple #2
0
    public IEnumerator CoroutineApplyCmdInCommandLine(bool openWinR, string msg)
    {
        List <JavaOMI> targets = m_targets.GetJavaOMISelected();

        Debug.Log(">>>" + targets.Count);


        // yield return new WaitForSeconds(3f);
        foreach (var item in targets)
        {
            if (openWinR)
            {
                yield return(new WaitForSeconds(0.2f));

                item.PastText("cmd");
                yield return(new WaitForSeconds(0.2f));

                item.Keyboard(JavaKeyEvent.VK_ENTER, PressType.Stroke);
                yield return(new WaitForSeconds(1f));
            }
            GitJOMI.Add(item);
            yield return(new WaitForSeconds(0.5f));

            if (string.IsNullOrEmpty(msg))
            {
                GitJOMI.Commit(item, DateTime.Now);
            }
            else
            {
                GitJOMI.Commit(item, msg);
            }
            yield return(new WaitForSeconds(0.5f));

            GitJOMI.Pull(item);
            yield return(new WaitForSeconds(0.5f));

            GitJOMI.Push(item);
            yield return(new WaitForSeconds(0.5f));

            GitJOMI.Status(item);
        }

        yield break;
    }