Skip to content

Commit

Permalink
v0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
t-ski committed Jul 15, 2024
1 parent b6053df commit fe378b9
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Intuitive [Semver](https://semver.org) based git client abstraction.
> 🖥️   grit does currently support macOS host systems.
``` console
bash <(curl -s https://raw.githubusercontent.com/t-ski/grit/main/installer/install.mac.sh) 1.0.0
bash <(curl -s https://raw.githubusercontent.com/t-ski/grit/main/installer/install.mac.sh) 0.1.0
```
> 💡 &hairsp; Note the version argument at the end ([browse versions](https://github.com/t-ski/grit/releases)).
Expand Down
9 changes: 3 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
#/!bin/bash


echo -e "↓ \033[1mmacOS (host)\033[0m"
echo "↓ \033[1mmacOS (host)\033[0m"
cargo build --release

# echo -e "↓ \033[1mLinux\033[0m"
# echo "↓ \033[1mLinux\033[0m"
# rustup target add x86_64-unknown-linux-gnu
# cargo build --release --target x86_64-unknown-linux-gnu

# echo -e "↓ \033[1mWindows\033[0m"
# echo "↓ \033[1mWindows\033[0m"
# rustup target add x86_64-pc-windows-gnu
# cargo build --release --target x86_64-pc-windows-gnu
4 changes: 2 additions & 2 deletions installer/install.mac.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
echo -e "\033[1mgrit\033[0m installing…"

if [ $# -eq 0 ]; then
echo "Specify version (e.g. 1.0.0)"
echo "Specify version argument, e.g.: …/install.mac.sh) 1.0.0"
exit 1
fi

Expand All @@ -18,4 +18,4 @@ tar -xf grit.tar.gz
mv grit/target/release/grit /usr/local/bin/grit
rm -r grit.tar.gz

echo -e "\033[31mDone.\033[0m"
echo -e "\033[31mInstallation successful.\033[0m"
12 changes: 8 additions & 4 deletions script.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
#/!bin/bash


VALID_SCRIPT=false

while IFS="=" read -r col1 col2
do
if [[ $(echo $col1 | xargs) == $1 ]]; then
eval $(echo $col2 | xargs)
exit 0
eval $col2
VALID_SCRIPT=true
fi
done < "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)/scripts.ini"

echo "\033[31mUnknown script\033[0m"
exit 1
if [[ $VALID_SCRIPT == false ]]; then
echo "\033[31mUnknown script\033[0m"
exit 1
fi
2 changes: 1 addition & 1 deletion scripts.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
debug = cargo build
build = ./build.sh
test = cd ./test && ./test.sh
build = ./build.sh
8 changes: 8 additions & 0 deletions src/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,13 @@ Usage: grit <command> [--<arg:key>|-<arg:shorthand> *?]*
Options:
--target, -t Name of target branch if different than main.
• redeclare Complete the current development.
Positionals:
1: Declare Semver purpose to up- or downgrade to:
[patch|minor|major]
• abort Abort the current development.
• status Display status information.
";
Binary file modified target/release/grit
Binary file not shown.

0 comments on commit fe378b9

Please sign in to comment.