mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06:39 +00:00
Include uninstall and clean commands
This commit is contained in:
36
bin/dotify
36
bin/dotify
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user