mirror of https://gitlab.crans.org/nounous/nixos
corrections of errors
parent
0a5037c8b6
commit
75ee27470f
|
|
@ -64,9 +64,10 @@ let
|
||||||
;;
|
;;
|
||||||
|
|
||||||
list)
|
list)
|
||||||
$YQ '.announcements | to_entries | .[] | "[" + (.key | tostring) + "] (" + (if .value.archived then "archivée" else "ACTIVE" end) + ") [" + .value.type + "] " + .value.message' "$FILE"
|
$YQ '.announcements | to_entries | .[] | "[" + (.key | tostring) + "] " + ((select(.value.archived == true) | "(archivée)") // "(ACTIVE)") + " [" + .value.type + "] " + .value.message' "$FILE"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
archive)
|
archive)
|
||||||
INDEX="''${2:-}"
|
INDEX="''${2:-}"
|
||||||
if [ -z "$INDEX" ]; then
|
if [ -z "$INDEX" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue