Package net.eldiosantos.command.main

Source Code of net.eldiosantos.command.main.Shell

package net.eldiosantos.command.main;

import java.io.File;
import java.util.Scanner;

import net.eldiosantos.command.core.Interpreter;

public class Shell {

  public static void main(String[] args) {
    String cmd;

    Scanner sc = new Scanner(System.in);

    Interpreter interpreter = new Interpreter(new File("/"));

    System.out.println("Console started...");

    do {
      System.out.print("shell: ");
      cmd = sc.nextLine();

      interpreter.parseCommand(cmd);

    } while (!cmd.equals("exit"));
  }
}
TOP

Related Classes of net.eldiosantos.command.main.Shell

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.