Compare commits

..

No commits in common. "master" and "origin/main" have entirely different histories.

48 changed files with 83 additions and 34 deletions

BIN
.DS_Store vendored

Binary file not shown.

1
Git_Repo Submodule

@ -0,0 +1 @@
Subproject commit 391adc8f616e2adc916c5179721491e07c64ec50

BIN
jcmd/.DS_Store vendored Normal file

Binary file not shown.

View File

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

0
jcmd/.mvn/maven.config Normal file
View File

0
jcmd/initial Normal file
View File

View File

@ -75,8 +75,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>9</source>
<target>9</target>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
</plugins>

View File

View File

@ -0,0 +1,78 @@
package de.vimo.core;
import java.util.List;
public class Line {
private String command;
private List<String> flags;
private List<String> args;
public Line(String command, List<String> flags, List<String> args) {
this.command = command;
this.flags = flags;
this.args = args;
}
public Line(String command) {
this.command = command;
}
public String getCommand() {
return command;
}
public List<String> getFlags() {
return flags;
}
public List<String> getArgs() {
return args;
}
// @Override
// public Line parse(String raw) {
// String regex = "[\\s]";
// String[] myArray = raw.split(regex);
//
// for (int i = 1; i < myArray.length; i++) {
// if (myArray[i].contains("-")) {
// flags.add(myArray[i]);
// } else {
// args.add(myArray[i]);
// }
// }
//
// return new Line(myArray[0], flags, args);
// }
//
// --- Please ignore this ---
//
// private final Command command;
//
// private final List<Flag> flags;
//
// private final List<Argument> args;
//
// public Line(Command command, List<Flag> flags, List<Argument> args) {
// this.command = command;
// this.flags = flags;
// this.args = args;
// }
//
// public Command getCommand() {
// return command;
// }
//
// public List<Flag> getFlags() {
// return flags;
// }
//
// public List<Argument> getArgs() {
// return args;
// }
}

Binary file not shown.

Binary file not shown.

View File

@ -1,31 +0,0 @@
package de.vimo.core;
import java.util.List;
public class Line {
private String command;
private List<String> flags;
private List<String> args;
public Line(String command, List<String> flags, List<String> args) {
this.command = command;
this.flags = flags;
this.args = args;
}
public String getCommand() {
return command;
}
public List<String> getFlags() {
return flags;
}
public List<String> getArgs() {
return args;
}
}