added list for srsc
This commit is contained in:
@@ -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;
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user