Open thawkins opened 2 years ago
what do you think about this: we could potentially add hooks for each kanban command (like .kanban/hooks/add
would be triggered after running add).
That would allow putting something like this into file .kanban/hooks/add.sample
:
test -d .git || exit 0
read -p "[kanban] git commit?" y
git add .kanban
test "$y" == "y" || exit 0
git commit -m "new kanban item: $*"
read -p "[kanban] git push?" y
test "$y" == "y" && git push origin $(git rev-parse --abbrev-ref HEAD)
WDYT?
to activate it: one simply has to rename
.kanban/hooks/add.sample
to.kanban/hooks/add
Would it be worth considering adding awareness of the data store files being in a git repo and do relevant pull, add commit and push actions when the state changes or add kanban push and kanban pull commands to handle updates, that would allow the tool to be used in teams or single dev on multiple machines.
Support .kanban folder in project repo