A dartlang task runner, write functions and call them in your terminal.
- Install dartlang dart.dev/get-dart
- Then install drun globally:
pub global activate drun
- Then install drun into your local project where your
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!
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
curl -L https://github.com/brad-jones/drun/releases/latest/download/drun-linux-x64.tar.gz -o- | sudo tar -xz -C /usr/bin drun
sudo rpm -i https://github.com/brad-jones/drun/releases/latest/download/drun-linux-x64.rpm
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
brew install brad-jones/tap/drun
scoop bucket add brad-jones https://github.com/brad-jones/scoop-bucket.git; scoop install drun;
name: my_project dependencies: # You should probably fix the version of drun but leaving it blank will # download the latest version and get you started. drun:
import 'package:drun/drun.dart'; Future main(argv) => drun(argv); Future myTask() => task((drun) => drun.log('Hello World'));
see ./example/README.md for more details