[metadata] name = "git-submodules" description = "List and manage git submodules" requirements = ["git"] [source] command = "git submodule status | awk '{print $2}'" [preview] command = "git -C '{}' log --oneline -10 --color=always" [actions.update] description = "Update the selected submodule" command = "git submodule update --init --recursive {}" mode = "execute" [actions.sync] description = "Sync the selected submodule URL" command = "git submodule sync {}" mode = "execute"