Added Library JLINE
This commit is contained in:
25
src/main/java/org/cametendo/Main.java
Normal file
25
src/main/java/org/cametendo/Main.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package org.cametendo;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
Scanner UserInput = new Scanner(System.in);
|
||||
|
||||
Greeting.greeting();
|
||||
String input = UserInput.nextLine();
|
||||
|
||||
if (YesNo.check(input)) {
|
||||
System.out.println("Please choose the to be flashed device (f. e. sda)");
|
||||
} else {
|
||||
System.out.println("Canceling...");
|
||||
System.exit(0);
|
||||
}
|
||||
StorageDeviceLister.deviceCheck(UserInput);
|
||||
FilePathAdd.filePath(UserInput);
|
||||
BlockSize.blockSize(UserInput);
|
||||
OflagHandler.handleOflag(UserInput);
|
||||
Flasher.flasher(UserInput);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user