feat: implement user management in just

This commit is contained in:
Chris Kruining 2025-12-11 23:20:36 +01:00
parent 20423eb0cd
commit 9824616c63
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 83 additions and 12 deletions

View file

@ -26,7 +26,7 @@ def to_cells(sizes): to_cells(sizes; null);
def to_line(left; joiner; right):
[left, .[1], (.[1:] | map([joiner, .]) ), right] | flatten | join("");
def to_table(data; header_callback; cell_callback):
def create(data; header_callback; cell_callback):
(data[0] | to_entries | map(.key)) as $keys
| ([$keys]) as $header
| (data | map(to_entries | map(.value))) as $rows
@ -55,5 +55,5 @@ def to_table(data; header_callback; cell_callback):
| join("\n")
);
def to_table(data; header_callback): to_table(data; header_callback; null);
def to_table(data): to_table(data; _::style(_::BOLD); null);
def create(data; header_callback): create(data; header_callback; null);
def create(data): create(data; _::style(_::BOLD); null);