add obj type script

This commit is contained in:
JMARyA 2024-05-02 15:55:47 +02:00
parent 008466a872
commit 82fea68b67
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

5
scripts/show_obj_type.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
OBJ=$(cat schema.json|jq -r ".properties.obj.enum[]"|gum choose)
mdq -c file.title:Title -c file.path:Path -f "{\"obj\": { \"\$regex\": \"^$OBJ\"}}" .