feat: jq just became a 1M times cooler!
Some checks failed
Test action / kaas (push) Failing after 1s
Some checks failed
Test action / kaas (push) Failing after 1s
This commit is contained in:
parent
c16cb15c10
commit
0fa3b79bd9
9 changed files with 568 additions and 9 deletions
27
.just/users.just
Normal file
27
.just/users.just
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
set unstable := true
|
||||
set quiet := true
|
||||
|
||||
_default:
|
||||
just --list
|
||||
|
||||
[script]
|
||||
list:
|
||||
cd .. && just vars get ulmo zitadel/users \
|
||||
| jq fromjson \
|
||||
| jq -r -C '
|
||||
include ".jq/table";
|
||||
include ".jq/format";
|
||||
|
||||
to_entries
|
||||
| sort_by(.key)
|
||||
| map(
|
||||
(.key|to_title) + ":\n"
|
||||
+ to_table(
|
||||
.value
|
||||
| to_entries
|
||||
| sort_by(.key)
|
||||
| map({username:.key} + .value)
|
||||
)
|
||||
)
|
||||
| join("\n\n┄┄┄\n\n")
|
||||
'
|
||||
|
|
@ -3,12 +3,6 @@ set quiet := true
|
|||
|
||||
base_path := invocation_directory() / "systems/x86_64-linux"
|
||||
|
||||
# sops := "nix shell nixpkgs#sops --command sops"
|
||||
# yq := "nix shell nixpkgs#yq --command yq"
|
||||
|
||||
sops := "sops"
|
||||
yq := "yq"
|
||||
|
||||
_default:
|
||||
just --list
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue