write short readme section about accounts

This commit is contained in:
Martin Michelsen
2024-03-28 22:51:25 -07:00
parent 6d73cae91b
commit 24e48b1abd
2 changed files with 15 additions and 3 deletions
+8 -3
View File
@@ -451,9 +451,14 @@ CommandDefinition c_list_licenses(
List all licenses registered on the server.",
true,
+[](CommandArgs& args) {
for (const auto& l : args.s->license_index->all()) {
string s = l->str();
fprintf(stderr, "%s\n", s.c_str());
auto licenses = args.s->license_index->all();
if (licenses.empty()) {
fprintf(stderr, "No licenses registered\n");
} else {
for (const auto& l : licenses) {
string s = l->str();
fprintf(stderr, "%s\n", s.c_str());
}
}
});