Include uninstall and clean commands

This commit is contained in:
2013-10-04 00:10:59 +01:00
parent 2c72a369e5
commit eeaf6b496c
2 changed files with 28 additions and 14 deletions

View File

@@ -253,12 +253,18 @@ parse-dotfile-option() {
# Command functions # Command functions
# #
dotify-version() { dotify-clean() {
echo "0.0.1" DOTIFY_RUN_MODE="clean"
execute-dotfile
return $?
} }
dotify-print-version() { dotify-compile() {
echo "dotify $(dotify-version)" locate-dotfile
if [ "$?" != "0" ]; then return 1; fi
compile-dotfile
return $?
} }
dotify-help() { dotify-help() {
@@ -279,20 +285,26 @@ dotify-info() {
echo " Target: $TARGET" echo " Target: $TARGET"
} }
dotify-compile() {
locate-dotfile
if [ "$?" != "0" ]; then return 1; fi
compile-dotfile
return $?
}
dotify-install() { dotify-install() {
DOTIFY_RUN_MODE="install" DOTIFY_RUN_MODE="install"
execute-dotfile execute-dotfile
return $? return $?
} }
dotify-uninstall() {
DOTIFY_RUN_MODE="uninstall"
execute-dotfile
return $?
}
dotify-version() {
echo "0.0.1"
}
dotify-print-version() {
echo "dotify $(dotify-version)"
}
# #
# Built-in Plugins # Built-in Plugins

View File

@@ -49,11 +49,13 @@ source "../lib/internals/parse-dotfile-options.sh"
# Command functions # Command functions
# #
source "../lib/dotify-version.sh" source "../lib/dotify-clean.sh"
source "../lib/dotify-compile.sh"
source "../lib/dotify-help.sh" source "../lib/dotify-help.sh"
source "../lib/dotify-info.sh" source "../lib/dotify-info.sh"
source "../lib/dotify-compile.sh"
source "../lib/dotify-install.sh" source "../lib/dotify-install.sh"
source "../lib/dotify-uninstall.sh"
source "../lib/dotify-version.sh"
# #
# Built-in Plugins # Built-in Plugins