drun 2.0.3 drun: ^2.0.3 copied to clipboard
A dartlang task runner, write functions and call them in your terminal.
drun #
A dartlang task runner, write functions and call them in your terminal.
Installation #
- Install dartlang https://dart.dev/get-dart
- Then install drun globally:
pub global activate drun
- Then install drun into your local project where your
Makefile.dart
resides.
Experimental dart2native binaries #
You may prefer to install the global drun
command as single statically compiled binary.
NOTE: You still need the dart SDK installed!
Direct download
Go to https://github.com/brad-jones/drun/releases and download the archive for
your Operating System, extract the drun
binary and and add it to your $PATH
.
Curl Bash
curl -L https://github.com/brad-jones/drun/releases/latest/download/drun-linux-x64.tar.gz -o- | sudo tar -xz -C /usr/bin drun
RPM package
sudo rpm -i https://github.com/brad-jones/drun/releases/latest/download/drun-linux-x64.rpm
DEB package
curl -sLO https://github.com/brad-jones/drun/releases/latest/download/drun-linux-x64.deb && sudo dpkg -i drun-linux-x64.deb && rm drun-linux-x64.deb
Homebrew
brew install brad-jones/tap/drun
Scoop
scoop bucket add brad-jones https://github.com/brad-jones/scoop-bucket.git;
scoop install drun;
Usage #
Makefile.dart
import 'package:drun/drun.dart';
Future<void> main(argv) async => drun(argv);
void myTask() {
print('Mello World');
}
Execute with drun my-task
see ./example/README.md for more details