aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/test/TestCommand_Test.java
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-07-03 06:22:16 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-07-03 06:22:16 +0700
commit74ec27a1d7208d7b22f715206ea143b399238e83 (patch)
tree7d4059d36a7ef306c92406cec632a5bb83bc9196 /src/main/java/cc/polyfrost/oneconfig/test/TestCommand_Test.java
parenta81bc67e90df2fddb8e2b8ad5ac6e13cf7c81032 (diff)
downloadOneConfig-74ec27a1d7208d7b22f715206ea143b399238e83.tar.gz
OneConfig-74ec27a1d7208d7b22f715206ea143b399238e83.tar.bz2
OneConfig-74ec27a1d7208d7b22f715206ea143b399238e83.zip
ignore test package
allow enabled property in Config to be set at constructor
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/test/TestCommand_Test.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/test/TestCommand_Test.java63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/test/TestCommand_Test.java b/src/main/java/cc/polyfrost/oneconfig/test/TestCommand_Test.java
deleted file mode 100644
index 33ed5b7..0000000
--- a/src/main/java/cc/polyfrost/oneconfig/test/TestCommand_Test.java
+++ /dev/null
@@ -1,63 +0,0 @@
-package cc.polyfrost.oneconfig.test;
-
-import cc.polyfrost.oneconfig.utils.commands.annotations.Command;
-import cc.polyfrost.oneconfig.utils.commands.annotations.Main;
-import cc.polyfrost.oneconfig.utils.commands.annotations.Name;
-import cc.polyfrost.oneconfig.utils.commands.annotations.SubCommand;
-import cc.polyfrost.oneconfig.libs.universal.UChat;
-
-@Command(value = "test", aliases = {"t"}, description = "Description of the test command")
-public class TestCommand_Test {
-
- @Main(description = "The main command.")
- private static void main() { // /test
- UChat.chat("Main command");
- }
-
- @SubCommand(value = "subcommand", aliases = {"s"}, description = "Subcommand 1.")
- private static class TestSubCommand {
-
- @Main(priority = 999, description = "Description of method")
- private static void main(int a, float b, @Name("named c") String c) { // /test subcommand <a> <b> <c>
- UChat.chat("Integer main: " + a + " " + b + " " + c);
- }
-
- @Main(priority = 10001)
- private static void main(double a, double b, @Name("named c") String c) { // /test subcommand <a> <b> <c>
- UChat.chat("Double main: " + a + " " + b + " " + c);
- }
-
- @SubCommand(value = "subsubcommand", aliases = {"ss"})
- private static class TestSubSubCommand {
-
- @Main
- private static void main(String a, String b, @Name("named c") String c) { // /test subcommand subsubcommand <a> <b> <c>
- joinAndChat(a, b, c);
- }
- }
- }
-
- @SubCommand(value = "subcommand2", aliases = {"s2"})
- private static class TestSubCommand2 {
- @Main
- private static void main(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, int hgshrs, boolean jrwjhrw) {
- joinAndChat(a, b, c, d, e, f, hgshrs, jrwjhrw);
- }
- }
-
- @SubCommand(value = "subcommand3", aliases = {"s3"})
- private static class TestSubCommand3 {
- @Main
- private static void main() {
- UChat.chat("subcommand 3");
- }
- }
-
- private static void joinAndChat(Object... stuff) {
- StringBuilder builder = new StringBuilder();
- for (Object thing : stuff) {
- builder.append(thing).append(" ");
- }
- UChat.chat(builder.toString().trim());
- }
-}