Giter Site home page Giter Site logo

run's Introduction

run

Minimal task runner.

run is an extremely minimal task runner that supports a shell-lite syntax.

Install

git clone https://github.com/jackmordaunt/run
cd run
cargo install --path .

Use

An example run file:

// Build binary paramaterized by some C library.
$cc -o tmp.exe foo.c $lib 
// Run it with some arguments in a shell pipeline.
tmp.exe --flag-one $flag-one | tail $1
// Cleanup afterward.
rm *.exe 

Run it like this:

run build.run -cc gcc -lib foobar.h -flag-one foo 10

Syntax

Very simple. '$' denotes a variable. Words declare named variables, numbers declare positional variables. Comments are C-like, denoted by '//'.

For example:

// Positional variables.
echo $1 $2 $3
// Named variables.
echo $foo $bar $baz

Remarks

  • For personal use (experimental, use at your own risk).
  • Highly portable because it's minimal.
  • Sick of looking at powershell, bash, make, and co.
  • Does the 80% solution of running paramatarised commands in sequence.
  • Features added via personal workflow.
  • Not trying to support the universe.
  • No turing complete language included.

run's People

Contributors

jackmordaunt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.