Skip to content

Commit

Permalink
new command
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiKod committed Jan 10, 2025
1 parent 4e6da3e commit 76e89d7
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sherpa.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sh:erpa Config

name: Sh:erpa
version: 0.1.1-alpha
version: 0.2.0-alpha
1 change: 0 additions & 1 deletion bin/fromSource

This file was deleted.

11 changes: 10 additions & 1 deletion bin/sherpa
Original file line number Diff line number Diff line change
Expand Up @@ -1020,5 +1020,14 @@ p "${txtGreen}-${x} Re-building the executable"
cd src
./Make.sh
br
p "${btnSuccess} Done! ${x}"
fi # End SelfUpdate
if [[ "$1" == "self-test" ]]; then # SelfTest
if [[ "$#" -gt 1 ]]; then
br
p "${btnWarning} Too many arguments! ${x} Usage: ${em}sherpa self-test${x}"
br
exit 1
fi
cd "$SDD"
sherpa test
fi # End SelfUpdate
20 changes: 19 additions & 1 deletion src/commands/self_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,24 @@ if [[ "$1" == "self-update" ]]; then # SelfUpdate
cd src
./Make.sh
br
p "${btnSuccess} Done! ${x}"

fi # End SelfUpdate

# ---------------------------- #
# Running tests from .sherpa #
# ---------------------------- #

if [[ "$1" == "self-test" ]]; then # SelfTest

# Check the arguments number
if [[ "$#" -gt 1 ]]; then
br
p "${btnWarning} Too many arguments! ${x} Usage: ${em}sherpa self-test${x}"
br
exit 1
fi

cd "$SDD"
sherpa test

fi # End SelfUpdate
1 change: 1 addition & 0 deletions tools/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ source "../lib/std/fmt.sh"
# TODO: !More safety checks per install

_install_cli_tools() {

# Check if webi is installed
if ! command -v webi &>/dev/null; then
p "${txtRed}${strong}x${x} Webi not found, installing..."
Expand Down

0 comments on commit 76e89d7

Please sign in to comment.