mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
21 lines
486 B
TOML
21 lines
486 B
TOML
[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"
|