drun 7.0.0 copy "drun: ^7.0.0" to clipboard
drun: ^7.0.0 copied to clipboard

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

2
likes
40
points
135
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

License

MIT (license)

Dependencies

analyzer, ansicolor, archive, args, async, console, convert, crypto, dexeca, dexecve, dotenv, glob, http, io, json2yaml, mustache_template, path, pubspec_yaml, queries, recase, stack_trace

More

Packages that depend on drun