ramonsnir / detoul

a declarative tool for creating integration branches in git
MIT License
5 stars 2 forks source link

support a `run` directive #37

Open ramonsnir opened 9 years ago

ramonsnir commented 9 years ago

run (which in its basic form is an alias for the now-deprecated exec directive) should run the given command under bash, when building the target release.

run will have two aliases:

A new command, detoul add-script-run-to <release> [--first|--finally] <command> will add a run line to the <release> script, or a first-run or a finally-run if applicable (and of course, place them correctly).

The order of finally-run directives should be maintained to be chronological by all utility command. The order of first-run directives should be maintained to be reverse-chronological by all utility command.