aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/test/TestCommand.java
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-28 23:11:16 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-28 23:11:16 +0700
commita112193704fce1dc704aa58a51fdf30f55f32a9c (patch)
tree0676f9f084e0be4861e8a5d27857d450dd772c81 /src/main/java/cc/polyfrost/oneconfig/test/TestCommand.java
parent4df2a5f6c815b0dd8cc8b68aaf164a40e63fa57d (diff)
downloadOneConfig-a112193704fce1dc704aa58a51fdf30f55f32a9c.tar.gz
OneConfig-a112193704fce1dc704aa58a51fdf30f55f32a9c.tar.bz2
OneConfig-a112193704fce1dc704aa58a51fdf30f55f32a9c.zip
migrate OneConfigCommand to new command util
make classes that end with `_Test` be excluded from non-sourcejar jars javadoc some more stuff
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/test/TestCommand.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/test/TestCommand.java39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/test/TestCommand.java b/src/main/java/cc/polyfrost/oneconfig/test/TestCommand.java
deleted file mode 100644
index 753c353..0000000
--- a/src/main/java/cc/polyfrost/oneconfig/test/TestCommand.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package cc.polyfrost.oneconfig.test;
-
-import cc.polyfrost.oneconfig.libs.universal.UChat;
-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;
-
-@Command(value = "test", aliases = {"t"})
-public class TestCommand {
-
- @Main
- private static void main() { // /test
- UChat.chat("Main command");
- }
-
- @SubCommand(value = "subcommand", aliases = {"s"})
- private static class TestSubCommand {
-
- @Main(priority = 999)
- 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>
- UChat.chat(a + " " + b + " " + c);
- }
- }
- }
-}