Add zet git to run Git commands within the zet
All checks were successful
/ check (push) Successful in 1m16s

...directory
This commit is contained in:
Oliver Davies 2025-09-06 22:22:45 +01:00
parent 34e129306e
commit f695a1f905

View file

@ -84,6 +84,7 @@ main() {
delete) delete_zet "$2" ;;
edit) edit_zet "$2" ;;
find|search) shift 1; search_zets "$@" ;;
git) shift 1; run_git_command "$@" ;;
links) generate_links "$2" ;;
new|create) shift 1; new_zet "$@" ;;
source) show_zet "$2" ;;
@ -105,6 +106,10 @@ new_zet() {
commit_changes "$filename" "Added $filename"
}
run_git_command() {
git -C "$ZET_DIR" "$@"
}
search_zets() {
query="$*"