aboutsummaryrefslogtreecommitdiff
path: root/share/templater/templater/functions
diff options
context:
space:
mode:
Diffstat (limited to 'share/templater/templater/functions')
-rw-r--r--share/templater/templater/functions18
1 files changed, 9 insertions, 9 deletions
diff --git a/share/templater/templater/functions b/share/templater/templater/functions
index 47c240b..b8658d2 100644
--- a/share/templater/templater/functions
+++ b/share/templater/templater/functions
@@ -4,15 +4,15 @@
#
# Initialize project
-function __templater_init {
+function templater_init {
if [ ! -d "$PROJECT" ]; then
- __templater_echo "Initializing $PROJECT..."
+ templater_echo "Initializing $PROJECT..."
mkdir -p $PROJECT
fi
}
# Read a parameter from user
-function __templater_ask {
+function templater_ask {
local input
local function="$1"
local default="n"
@@ -26,27 +26,27 @@ function __templater_ask {
}
# Return list of implementations
-function __templater_implementations {
+function templater_implementations {
# Do not sort this list: the order in which functions are present in the code is important
#grep "^function templater_" $PROGRAM | cut -d ' ' -f 2 | sed -e 's/templater_//'
ls $SHARE
}
# Message
-function __templater_echo {
+function templater_echo {
#echo ""
echo "-> $*"
}
# Checkout to develop branch if available
-function __templater_checkout_develop {
+function templater_checkout_develop {
if git branch --list develop | grep -q develop; then
git checkout develop
fi
}
# Copy or append source file into destination
-function __templater_copy_or_append {
+function templater_copy_or_append {
local implementation="$1"
local file="$2"
@@ -62,7 +62,7 @@ function __templater_copy_or_append {
}
# Read a parameter from user
-function __templater_user_input {
+function templater_user_input {
local input
local param="$1"
local default="$2"
@@ -82,7 +82,7 @@ function __templater_user_input {
}
# Install the global Makefile
-function __templater_install_makefile {
+function templater_install_makefile {
if [ -z "$1" ]; then
return
fi