-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Maximiliano Greco edited this page Dec 2, 2023
·
1 revision
Welcome to the takt wiki!
You can extend takt
as you wish. Let me show you some examples:
I've created a repo where I put my takt-file and set TAKT_FILE
accordingly, and now I created this bash function to track the file with git so I can commit, push and pull.
takt-git() {
case $1 in
check)
takt check
cd $(dirname $TAKT_FILE)
git add $TAKT_FILE
git commit -m "check $(date +%Y-%m-%d)"
cd -
;;
push)
cd $(dirname $TAKT_FILE)
git push
cd -
;;
pull)
cd $(dirname $TAKT_FILE)
git pull
cd -
;;
esac
}