Skip to content

Commit

Permalink
Made example include more data
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharpz7 committed Jul 13, 2022
1 parent 8530d6e commit 5f26ad0
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,41 @@ Sharpdev aims to make scripts for your projects much easier to use!
version: 1.0
envfile: .env
values:
TEST: Hello World!
TEST: Values work

setup: |
echo "Setup"
scripts:
default: echo "Hello World"
build: go build -o ./internal/sharpdev ./src
test1: sharpdev build && ./internal/sharpdev echo1
test2: sharpdev build && ./internal/sharpdev echo2 $_ARG1
test2: sharpdev build && ./internal/sharpdev echo2 $_ARG1 $_ARG2

test3: |
sharpdev build
cd ./internal
./sharpdev -p echo1
./sharpdev -p echo3
cd ..
test4: |
sharpdev build
cd ./internal
./sharpdev -v
./sharpdev --version
cd ..
test5: sharpdev build && ./internal/sharpdev

echo1: echo TEST
echo2: echo $_ARG1
echo2: echo $_ARG1 $_ARG2
echo3: echo $ECHO

full: |
sharpdev test1
sharpdev test2 Test2
sharpdev test2 Args Works
sharpdev test3
sharpdev test4
sharpdev test5
```
# Installation
Expand Down

0 comments on commit 5f26ad0

Please sign in to comment.