- Updated `task`, `task.template`, and `library.md` to use angle brackets (`<param>`) for required parameters and square brackets (`[param]`) for optional ones. - Fixed argument order mismatches in `create-symlink`, `create-symlink-files`, and `commit-git-folder` documentation. - Removed non-existent `[path]` parameter from `merge-git-remote`. - Standardized empty-argument error messages across `bin/*` scripts to use slash notation (e.g., `$1/path is empty.`). - Updated prompt file `prompts/21_show-optional-and-required-params-in-task-help.md` to mark task as completed and log work.
16 lines
380 B
Bash
Executable File
16 lines
380 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
status-git-folder() {
|
|
if [[ -z "$1" ]]; then echo "\$1/path is empty."; exit; fi
|
|
local git_folders=$(ls-git-folder "$1")
|
|
|
|
echo 'Show status in git folders...'
|
|
for git_folder in $git_folders; do
|
|
echo -e "\nGit status of \033[32m$git_folder\033[0m:\n"
|
|
git -C "$git_folder" status
|
|
done
|
|
}
|
|
sgif() {
|
|
status-git-folder "$@"
|
|
}
|