aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/edu/brown/cs/student/term/repl/Command.java
blob: b110644fdc314570c1d12d47ceae84ed6b795586 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package edu.brown.cs.student.term.repl;

/**
 * Interface implemented by all the commands that the REPL is responsible for
 */
public interface Command {
  /**
   * The function that the command calls when run from the REPL
   * @param args - the arguments for the command
   * @return a string representation of the output, or error message
   */
  String run(String[] args);
}