Skip to content

Commit 76e89d7

Browse files
committed
new command
1 parent 4e6da3e commit 76e89d7

File tree

5 files changed

+31
-4
lines changed

5 files changed

+31
-4
lines changed

Sherpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sh:erpa Config
22

33
name: Sh:erpa
4-
version: 0.1.1-alpha
4+
version: 0.2.0-alpha

bin/fromSource

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/sherpa

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,5 +1020,14 @@ p "${txtGreen}-${x} Re-building the executable"
10201020
cd src
10211021
./Make.sh
10221022
br
1023-
p "${btnSuccess} Done! ${x}"
1023+
fi # End SelfUpdate
1024+
if [[ "$1" == "self-test" ]]; then # SelfTest
1025+
if [[ "$#" -gt 1 ]]; then
1026+
br
1027+
p "${btnWarning} Too many arguments! ${x} Usage: ${em}sherpa self-test${x}"
1028+
br
1029+
exit 1
1030+
fi
1031+
cd "$SDD"
1032+
sherpa test
10241033
fi # End SelfUpdate

src/commands/self_update.sh

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,24 @@ if [[ "$1" == "self-update" ]]; then # SelfUpdate
3939
cd src
4040
./Make.sh
4141
br
42-
p "${btnSuccess} Done! ${x}"
42+
43+
fi # End SelfUpdate
44+
45+
# ---------------------------- #
46+
# Running tests from .sherpa #
47+
# ---------------------------- #
48+
49+
if [[ "$1" == "self-test" ]]; then # SelfTest
50+
51+
# Check the arguments number
52+
if [[ "$#" -gt 1 ]]; then
53+
br
54+
p "${btnWarning} Too many arguments! ${x} Usage: ${em}sherpa self-test${x}"
55+
br
56+
exit 1
57+
fi
58+
59+
cd "$SDD"
60+
sherpa test
4361

4462
fi # End SelfUpdate

tools/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ source "../lib/std/fmt.sh"
1212
# TODO: !More safety checks per install
1313

1414
_install_cli_tools() {
15+
1516
# Check if webi is installed
1617
if ! command -v webi &>/dev/null; then
1718
p "${txtRed}${strong}x${x} Webi not found, installing..."

0 commit comments

Comments
 (0)