drun 7.0.0

Dart native

A dartlang task runner, write functions and call them in your terminal.

drun #

Pub Version .github/workflows/main.yml semantic-release Conventional Commits KeepAChangelog License

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

https://brew.sh

brew install brad-jones/tap/drun

Scoop

https://scoop.sh

scoop bucket add brad-jones https://github.com/brad-jones/scoop-bucket.git;
scoop install drun;

Usage #

pubspec.yaml

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:

Makefile.dart

import 'package:drun/drun.dart';
Future main(argv) => drun(argv);
Future myTask() => task((drun) => drun.log('Hello World'));

Execute with drun my-task

see ./example/README.md for more details