mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06:39 +00:00
Flesh out basic structure of action plugins
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
dotify-action-git() {
|
||||
echo "git: $@"
|
||||
if [ "$DOTIFY_RUN_MODE" == "install" ]; then
|
||||
dotify-action-git-install $@
|
||||
elif [ "$DOTIFY_RUN_MODE" == "uninstall" ]; then
|
||||
dotify-action-git-uninstall $@
|
||||
fi
|
||||
}
|
||||
|
||||
dotify-action-git-install() {
|
||||
echo "git install: $@"
|
||||
}
|
||||
|
||||
dotify-action-git-uninstall() {
|
||||
echo "git uninstall: $@"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
dotify-action-link() {
|
||||
echo "link: $@"
|
||||
if [ "$DOTIFY_RUN_MODE" == "install" ]; then
|
||||
dotify-action-link-install $@
|
||||
elif [ "$DOTIFY_RUN_MODE" == "uninstall" ]; then
|
||||
dotify-action-link-uninstall $@
|
||||
fi
|
||||
}
|
||||
|
||||
dotify-action-link-install() {
|
||||
echo "link install: $@"
|
||||
}
|
||||
|
||||
dotify-action-link-uninstall() {
|
||||
echo "link uninstall: $@"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user