Skip to content

.RUN & .RUNFILE - v0.7.0

Pre-release
Pre-release

Choose a tag to compare

@TekWizely TekWizely released this 06 Jan 01:19
· 75 commits to master since this release
9870a67

Changelog

4cd9fd0 Adds .RUN and .RUNFILE attributes (#21)
584e19b Renames version as run-version in shebang mode (#19)
5eda761 Makes .SHELL available for read (#17)
e466d2a Makes attributes available to command exports (#15)
14598e7 Adds brew core section to README
3792b87 Updates version string wit[h] BuildTool/builder
0c9ebbe Adds initial goreleaser config

.RUN & .RUNFILE Attributes

Adds .RUN and .RUNFILE attributes to make it possible to invoke other commands / runfiles from within your command script.

Runfile

##
# Invokes hello
# EXPORT RUN := ${.RUN}
# EXPORT RUNFILE := ${.RUNFILE}
test:
    "${RUN}" -r "${RUNFILE}" hello
hello:
    echo "Hello, World"

output

$ run test

Hello, World

Breaking Changes

This release is considered a breaking change since it now resolves the absolute path of the Runfile and uses that to process the file.