File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
1
# ConsoleTools
2
2
###### by Command Jo
3
- < br >< br >
3
+
4
4
ConsoleTools is a CLI that has a collection of useful tools
5
5
for various things in the console.
6
6
@@ -10,8 +10,14 @@ TO BE ADDED
10
10
11
11
# Functionality
12
12
1 . Launch the app
13
- 2 . It will tell you that ``` to get started type "?" ```
14
- 3 . This will show you all the information you need to work
13
+ ``` bash
14
+ java -jar ConsoleTools.jar
15
+ ```
16
+ 2 . It will then tell you that
17
+ ``` text
18
+ to get started type "?"
19
+ ```
20
+ 3 . Doing this will show you the Helpscreen
15
21
16
22
17
23
# Modules
Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ public void addFile(File file) {
56
56
* @param file The parameter "file" is of type File and represents the directory that you want to add to the server.
57
57
*/
58
58
public void addDirectory (File file ) {
59
- this .files .addAll (Arrays .asList (Objects .requireNonNull (file .listFiles ())));
59
+ for (File subfile : Objects .requireNonNull (file .listFiles ())) {
60
+ if (!subfile .isDirectory ()) this .files .add (subfile );
61
+ }
60
62
System .out .println (ConsoleColors .YELLOW_BRIGHT +"---------------------------------" );
61
63
System .out .println (ConsoleColors .YELLOW +"> " +ConsoleColors .YELLOW_BRIGHT +"Added Directory to Server: " +file .getName ());
62
64
System .out .println (ConsoleColors .YELLOW_BRIGHT +"---------------------------------" );
Original file line number Diff line number Diff line change 12
12
| \ \_______\ \ \__\ \ \_______\ \ \_______\ \ \_______\ |\_________\ |
13
13
| \|________| \|__| \|_______| \|_______| \|_______| \|_________| |
14
14
| |
15
- | |
16
- | to get started type "?" |
15
+ | ConsoleTools by Johannes Hans @CommandJoo |
16
+ | Version 1.0.5 |
17
+ | https://github.com/CommandJoo/ConsoleTools |
18
+ | to get started type "?" |
17
19
| |
18
20
| |
19
21
|---------------------------------------------------------------------------------------------------------------------|
You can’t perform that action at this time.
0 commit comments