Recursive InternalActionOption list

This commit is contained in:
2024-06-06 16:07:31 +03:00
parent 23961a48b0
commit 1a5f0cbede
4 changed files with 67 additions and 16 deletions

View File

@@ -21,10 +21,15 @@ public class Plugin: ICommandAction
new InternalActionOption("help", "Displays this message"),
new InternalActionOption("list", "Lists all plugins"),
new InternalActionOption("load", "Loads all plugins"),
new InternalActionOption("install", "Installs a plugin"),
new InternalActionOption("install", "Installs a plugin", [
new InternalActionOption("name", "The name of the plugin to install")
]),
new InternalActionOption("refresh", "Refreshes the plugin list"),
new InternalActionOption("uninstall", "Uninstalls a plugin"),
new InternalActionOption("branch", "Sets a plugin option")
new InternalActionOption("branch", "Sets a plugin option", [
new InternalActionOption("set", "Sets the branch"),
new InternalActionOption("get", "Gets the branch")
])
};
public InternalActionRunType RunType => InternalActionRunType.ON_CALL;