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:
10 files changed
+258
-3
No files matched your search
Executable
+11
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user