feat(bin): add git folder management utilities and enhance task command parsing

- Introduce new git folder management functions: `clean-git-folder`, `commit-git-folder`, `ls-git-folder`, `push-git-folder`, `reset-git-folder`, `stage-git-folder`, `status-git-folder`
- Add `.prompt/update-switch-case-for-all-task-files` script to update task files with comma-separated command support
- Enhance task command parsing to support comma-separated commands with whitespace trimming and error handling
- Document all new git folder functions in `library.md` under Git section
- Add all new git folder functions to help table in `task.template`
- Update `library.md` to include folder structure overview and fix typos
- Maintain consistent formatting and structure with existing code
This commit is contained in:
Janik von Rotz committed 2025-12-03 09:22:46 +01:00
1 parent 7269ed359d
commit c1f97636cf
10 files changed
+258 -3

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
push-git-folder() {
if [[ -z "$1" ]]; then echo "\$1 is empty."; exit; fi
local git_folders=$(ls-git-folder "$1")
for git_folder in $git_folders; do
echo "Push in $git_folder."
git -C "$git_folder" push
done
}