Files
git.taskfile.build/bin/status-git-folder
T
Janik von Rotz c1f97636cf 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
2025-12-03 09:22:46 +01:00

13 lines
272 B
Bash
Executable File

#!/usr/bin/env bash
status-git-folder() {
if [[ -z "$1" ]]; then echo "\$1 is empty."; exit; fi
local git_folders=$(ls-git-folder "$1")
echo 'Show status in git folders.'
for git_folder in $git_folders; do
git -C "$git_folder" status
done
}