9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-29 19:49:13 +00:00

fix: update documentation, help menu access for migrators

This commit is contained in:
William
2024-06-23 15:49:28 +01:00
parent 962cdfce0b
commit 0b29de9efc
4 changed files with 12 additions and 8 deletions

View File

@@ -160,6 +160,10 @@ public class HuskSyncCommand extends PluginCommand {
.collect(Collectors.joining("\n"))
));
});
sub.addSubCommand("help", (help) -> help.addSyntax((cmd) -> {
final Migrator migrator = cmd.getArgument("migrator", Migrator.class);
plugin.log(Level.INFO, migrator.getHelpMenu());
}, migrator()));
sub.addSubCommand("start", (start) -> start.addSyntax((cmd) -> {
final Migrator migrator = cmd.getArgument("migrator", Migrator.class);
migrator.start().thenAccept(succeeded -> {