4
0
Fork 0
mirror of https://github.com/Anvilcraft/modpacktools synced 2024-06-11 06:59:28 +02:00

moved commands into commands package

This commit is contained in:
LordMZTE 2020-05-02 12:14:55 +02:00
parent 3a62436ecd
commit 4207f3e4a0
4 changed files with 6 additions and 9 deletions

View file

@ -1,5 +1,6 @@
package ley.anvil.modpacktools;
import ley.anvil.modpacktools.commands.Commands;
import ley.anvil.modpacktools.util.Config;
public class Main {

View file

@ -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;

View file

@ -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;

View file

@ -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) {