rps 0.10.1
rps: ^0.10.1 copied to clipboard
rps (Run Pubspec Script) allows you to define and run scripts from pubspec.yaml.
0.10.1 #
- Added dartdoc comments and package example.
- Enabled stricter linting rules.
0.10.0 #
- Calling
rpswill now display a list of all commands and allow you to select them. - Switched from
cmdtopowershellon Windows platform.- It allows multiline scripts to be executed correctly, resolves #16.
rps lsno longer lists$before/$afterhook entries.- Child script exit codes are now reported correctly on macOS and Linux, and propagated back to the parent shell (
rps failwherefail: exit 7now exits7).
0.9.1 #
- Used static linking of the CRT library on Windows instead of dynamic - solves Windows problems when the CRT library was not present.
0.9.0 #
- Added support for an external script file (
rps.yaml), thanks to @masreplay in #24.
0.8.2 #
- Fix arguments serialization. escape backslashes, single and double quotes for shell safety and enclose in quotes if necessary: contains spaces or quotes.
0.8.1 #
- Added support for Linux Arm64 (aarch64) architecture.
- Improved Abi handling
0.8.0 #
BREAKING CHANGES #
- Support for positional arguments:
${0},${1}... - To use references use
rpsinstead of$prefix.
Additional changes #
- Added list command:
rps ls- Lists all available commands
- Added upgrade command:
rps -u/rps --upgrade - Improved help command
rps -h/rps --help - Updated readme documentation.
0.7.0 #
BREAKING CHANGES #
-
A special
$scriptkey has been introduced with a neat πͺ platform recognition feature.Do you work on multiple platforms? Need to use many different commands and always forget which one to use? This is what you've been waiting for!
scripts: where-am-i: $script: $windows: echo "You are on Windows!" $linux: echo "You are on Linux!" $macos: echo "You are on MacOs!" $default: echo "You are on... something else?"user@MacBook-Pro Desktop % rps where-am-i > where-am-i $ echo "You are on MacOs!" You are on MacOs! user@MacBook-Pro Desktop %This can be useful for commands like
rm -rf, which in Windows....rd /s /q, you know what I mean, it can be helpful, right? -
Added support for script references. From now on it is possible to call another rps command directly from a defined script.
scripts: app: clean: flutter clean clean: $app clean c: $clean clear: $c delete: $clearThis is just a simple proxy example, but you can also use it in
$beforeand$afterhooks to chain multiple scripts together. -
β οΈ The
before-andafter-hooks has been removed. Instead use the$beforeand$afterkeys. This will help keep hook scripts grouped in a project with multiple scripts defined.scripts: hooks: $before: echo "before" $script: echo "script" $after: echo "after"Execute by calling the
rps hooks.It is also possible to link multiple scripts together!
scripts: get: flutter pub get test: $before: $get $script: flutter test build: $before: $test $script: flutter build apkYou don't have to worry about cyclic references, RPS will keep track of them and notify you in case of a problem.
0.6.5 #
- Update dependencies
- Longer description in pubspec.yaml
- pedantic (deprecated) replaced by flutter_lints
0.6.4 #
- Fixed readme example
0.6.3 #
- Minor bug fixes and improvements. π§
0.6.2 #
- Exposed executables.
0.6.1 #
- Minor bug fixes and improvements. π§
- Added colorful logs. π¨
- Shared with the world via Github and pub.flutter-io.cn! π
0.6.0 #
- Added optional
before-andafter-hooks support.
0.5.1 #
- A
--versionflag has been added.
0.5.0 #
- Move towards native implementation.
- Added native support for linux (x86_64).
0.4.0 #
- Move towards native implementation.
- Added native support for windows (x86_64).
0.3.1 #
- Move towards native implementation.
- Added native support for macos (arm64).
0.3.0 #
- Move towards native implementation.
- Added native support for macos (x86_64).
0.2.0 #
- Added basic logs.
- Added two-way communication with the child process through dart
Process.
0.1.0 #
- Initial version.
