mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 01:56: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
|
||||
#
|
||||
|
||||
dotify-version() {
|
||||
echo "0.0.1"
|
||||
dotify-clean() {
|
||||
DOTIFY_RUN_MODE="clean"
|
||||
execute-dotfile
|
||||
return $?
|
||||
}
|
||||
|
||||
dotify-print-version() {
|
||||
echo "dotify $(dotify-version)"
|
||||
dotify-compile() {
|
||||
locate-dotfile
|
||||
if [ "$?" != "0" ]; then return 1; fi
|
||||
|
||||
compile-dotfile
|
||||
return $?
|
||||
}
|
||||
|
||||
dotify-help() {
|
||||
@@ -279,20 +285,26 @@ dotify-info() {
|
||||
echo " Target: $TARGET"
|
||||
}
|
||||
|
||||
dotify-compile() {
|
||||
locate-dotfile
|
||||
if [ "$?" != "0" ]; then return 1; fi
|
||||
|
||||
compile-dotfile
|
||||
return $?
|
||||
}
|
||||
|
||||
dotify-install() {
|
||||
DOTIFY_RUN_MODE="install"
|
||||
execute-dotfile
|
||||
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
|
||||
|
||||
@@ -49,11 +49,13 @@ source "../lib/internals/parse-dotfile-options.sh"
|
||||
# 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-info.sh"
|
||||
source "../lib/dotify-compile.sh"
|
||||
source "../lib/dotify-install.sh"
|
||||
source "../lib/dotify-uninstall.sh"
|
||||
source "../lib/dotify-version.sh"
|
||||
|
||||
#
|
||||
# Built-in Plugins
|
||||
|
||||
Reference in New Issue
Block a user