Пример #1
0
  /**
   * Evaluate the first word of the input and acts accordingly
   *
   * @param input the input.
   */
  private void eval(String input) {
    input = input.toLowerCase();

    if (input.contains("add ")) {
      addToPull(input);
      return;
    }

    if (input.contains("commit")) {
      performCommit();
      return;
    }

    if (input.contains("exit")) {
      exitsignal = 1;
      view.ExitMessage();
      return;
    }

    view.NotReconizedCommand();
  }