Commit ce5390c1 authored by Nico Schallehn's avatar Nico Schallehn

test

parent dd6644b3
......@@ -5,7 +5,7 @@ $colors = new Colors();
//echo "md5: ".$colors->getColoredString("Fehler!", "white", "red") .PHP_EOL;
//echo "md5: ".$colors->getColoredString("Erfolgreich!", "white", "green") .PHP_EOL;
/*
if(isset($argv[1])){
switch ($argv[1]){
case "filme":
......@@ -22,5 +22,23 @@ if(isset($argv[1])){
echo $colors->getColoredString("Benutzung:", "black", "light_gray") .PHP_EOL;
echo " filme [Pfad zum einlesen] [Zielfestplatte]".PHP_EOL;
}
*/
$exit = false;
do{
echo "Bitte Befehl eingeben:";
$name = trim(fgets(STDIN));
echo "Hallo $name \n";
switch ($name){
case "exit":
$exit = true;
break;
default:
echo $colors->getColoredString("Benutzung:", "black", "light_gray") .PHP_EOL;
echo " filme [Pfad zum einlesen] [Zielfestplatte]".PHP_EOL;
break;
}
}while(!$exit);
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment