mirror of
https://github.com/Anvilcraft/modpacktools
synced 2024-09-30 04:59:05 +02:00
moved commands into commands package
This commit is contained in:
parent
3a62436ecd
commit
4207f3e4a0
4 changed files with 6 additions and 9 deletions
|
@ -1,5 +1,6 @@
|
|||
package ley.anvil.modpacktools;
|
||||
|
||||
import ley.anvil.modpacktools.commands.Commands;
|
||||
import ley.anvil.modpacktools.util.Config;
|
||||
|
||||
public class Main {
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
package ley.anvil.modpacktools;
|
||||
package ley.anvil.modpacktools.commands;
|
||||
|
||||
import com.google.gson.*;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import ley.anvil.modpacktools.util.ModInfo;
|
||||
import ley.anvil.modpacktools.util.Util;
|
||||
import ley.anvil.modpacktools.Main;
|
||||
import org.apache.commons.csv.CSVFormat;
|
||||
import org.apache.commons.csv.CSVPrinter;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
|
@ -1,9 +1,9 @@
|
|||
package ley.anvil.modpacktools.util;
|
||||
package ley.anvil.modpacktools.commands;
|
||||
|
||||
import com.google.gson.*;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import ley.anvil.modpacktools.Commands;
|
||||
import ley.anvil.modpacktools.Main;
|
||||
import ley.anvil.modpacktools.util.Util;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.MalformedURLException;
|
|
@ -34,6 +34,7 @@ public class Util {
|
|||
* @param url the url to send the request to
|
||||
* @param contentType what content type should be used. Example: "application/json; utf-8"
|
||||
* @param accept what content is accepted. Example: "application/json"
|
||||
* @param payload the payload to send
|
||||
* @return the response as string
|
||||
*/
|
||||
public static String httpPostString(URL url, String payload, String contentType, String accept) {
|
||||
|
|
Loading…
Reference in a new issue