feat: implement user management in just
This commit is contained in:
parent
20423eb0cd
commit
9824616c63
2 changed files with 83 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue