Skip to content

Commit 08c77af

Browse files
committed
docs: update readme
1 parent d1c8d51 commit 08c77af

File tree

3 files changed

+6
-28
lines changed

3 files changed

+6
-28
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.8.0-dev.2
1+
## 0.8.0-dev.3
22
- Experimental support for positional arguments
33
## 0.7.0
44

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RPS is a dart script manager that allows you to define and use scripts from the
1515

1616
1. Install this package.
1717
```bash
18-
dart pub global activate rps --version 0.8.0-dev.2
18+
dart pub global activate rps --version 0.8.0-dev.3
1919
```
2020
2. Define scripts inside the pubspec.yaml
2121
```yaml
@@ -149,7 +149,7 @@ This can be useful for commands like `rm -rf`, which in Windows.... `rd /s /q`,
149149
150150
## 🎯 Positional arguments
151151
152-
Arguments can be passed by adding to the command the - simple, but sometimes it is useful to give them in a specific place, here positional arguments come to the rescue.
152+
Arguments can be passed by adding them to the end of the command - simple, but sometimes it is useful to give them in a specific place, here positional arguments come to the rescue.
153153
154154
Positional arguments are defined as numbers in parentheses: `${0}`, `${1}`, `${3}` and so on....
155155
@@ -190,9 +190,9 @@ scripts:
190190
appbundle: "flutter build --release appbundle --flavor production"
191191
# and so on...
192192
# too long command? no problem! define alias using reference syntax!
193-
bab: $build android appbundle
193+
bab: rps build android appbundle
194194
# as simple as typing "rps baa"
195-
baa: $build android apk
195+
baa: rps build android apk
196196
# some commands may vary from platform to platform
197197
# but that's not a problem
198198
clear:

pubspec.yaml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: rps
22
description: rps (Run Pubspec Script) allows you to define and run scripts from pubspec.yaml.
3-
version: 0.8.0-dev.2
3+
version: 0.8.0-dev.3
44
repository: https://github.com/gonuit/rps
55
homepage: https://github.com/gonuit/rps
66
issue_tracker: https://github.com/gonuit/rps/issues
@@ -11,28 +11,6 @@ executables:
1111
environment:
1212
sdk: ">=2.19.4 <4.0.0"
1313

14-
scripts:
15-
echo: echo "echo 123"
16-
hook-1:
17-
$before: echo "before hook-1"
18-
$script: echo "hook-1"
19-
$after: echo "after hook-1"
20-
hook-2:
21-
$before: echo "before hook-2"
22-
hook-2-nested:
23-
$before: echo "before hook-2-nested"
24-
$script: echo "hook-2-nested"
25-
$after: echo "after hook-2-nested"
26-
$after: echo "after hook-2"
27-
ref: rps echo
28-
hook-ref:
29-
$before: rps echo
30-
$script: echo "hook-ref"
31-
$after: rps echo
32-
echo-args: echo
33-
echo-positional: echo second=${1} first=${0}
34-
35-
3614
dependencies:
3715
yaml: ^3.1.2
3816
path: ^1.8.3

0 commit comments

Comments
 (0)