Automatically push committed changes

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-22 22:29:45 +01:00
parent 4e76760bb6
commit 23505f6c31

10
zet
View file

@ -14,7 +14,6 @@ Usage:
zet id QUERY... : Search for a zettel and display its ID
zet latest : Edit the latest zettel
zet print|p QUERY... : Search for a zettel and print it
zet push : Push changes
zet view|v QUERY... : Search for a zettel and view it
zet QUERY... : Print IDs and titles of zettels matching QUERY
@ -52,10 +51,6 @@ cmd_links() {
generate_links "$(cmd_search "$QUERY")"
}
cmd_push() {
git push
}
cmd_search() {
parse_zet_list < <(search_zettel "$@")
printf "%s\n" "${ZET_LIST[@]}"
@ -83,6 +78,7 @@ commit_zettel() {
git add "$ZID"
git commit -m "$MESSAGE"
git push
}
create_zettel() {
@ -160,10 +156,6 @@ main() {
cmd_links "$@"
;;
push)
cmd_push
;;
view | v)
shift 1
cmd_view "$@"