Giter VIP home page Giter VIP logo

redo's People

Contributors

hoboneer avatar

Watchers

 avatar

redo's Issues

Support multi-output targets

In line with the distinguishing of normal, phony, and multi-output targets proposed by #3, these distinctions could be used for multi-output targets.

Maybe redo-addtarget could register the target with the central database, and give the caller the name of the tempfile to write to. The use of this command would mark the current target as virtual.

Support VPATH

A central .redo directory (a la Git) simplifies this. So, where should it be stored? Should it depend on cwd of the toplevel redo call?

Add `redo-clean` command

Since we already know the dependency graph, having automatic cleaning is convenient and safe.

By default, redo-clean TARGET should remove TARGET only. A flag -r or -R would recursively delete TARGET, its dependencies, their dependencies, and so on until we clean the leaf nodes in the dependency graph.

Support real .PHONY targets

From what i've seen in the wild, targets that, in make, would be marked .PHONY aren't anything special in the eyes of redo.

They're just run with redo, while their dependencies would be run with redo-ifchange.

What happens if a file with the same name exists? If used with redo, there's no problem, but if used with redo-ifchange, nothing is run.

Distinguishing real, phony, and "virtual" (multi-output) targets might help:

  1. users unfamiliar with the repo, since a command like redo-targets -p (p for phony) could be run; and
  2. other programs, which could use that information for other purposes (such as autodocs, or linting the project's .do files?)

Support directly runnable `.do` files

As in make, the use of shell allows easy tracing (and thus transparency) with set -xv.

This could be generalised to any executable .do files, capturing stderr as the tracing output.

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.