Add zet git
to run Git commands within the zet
All checks were successful
/ check (push) Successful in 1m16s
All checks were successful
/ check (push) Successful in 1m16s
...directory
This commit is contained in:
parent
34e129306e
commit
f695a1f905
1 changed files with 5 additions and 0 deletions
|
@ -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="$*"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue