added list for srsc

This commit is contained in:
2023-06-30 16:19:00 +02:00
parent d1f9104aba
commit d2873d6353
4 changed files with 45 additions and 1 deletions

View File

@@ -70,5 +70,20 @@ class CLI extends CLIAppBase {
return true;
});
}, "<name>");
registerAsyncSubcommand("list", (args) -> {
return RessourceNames.list().map((res) -> {
switch (res) {
case Success(data):
for (name in data) {
handle.writeLine(name);
}
case Failure(error):
handle.writeLine("Error: " + error);
}
return true;
});
});
}
}