-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hooks or meta commands #79
Comments
Greetings! Runfile
./commands/homebrew/Runfile
./commands/aqua/Runfile
And when executed:
Give that pattern a try and lemme know what you think, and as always, thanks for the discussion! -TW |
@TekWizely I didn't know what happens with the variables declared in the |
So I'm starting to warm to the idea of supporting
I will definitely grind on this some more |
@TekWizely Of course, all these should have identical signatures, i.e. they should support the same type of options, switches, etc. |
I was under the impression that
RUN.BEFORE
andRUN.AFTER
worked differently. In fact, I thought that I could do the following (especially valid when you have multipleRunfile
s):The contents of
./commands/homebrew/Runfile
:The contents of
./commands/aqua/Runfile
:The contents of
./Runfile
:So, I naively hoped that I could wire in more commands in various
./commands/*/Runfile
files without having to wire them in./Runfile
, so, if I would get the following result in the setup above:It came out I was wrong and that
RUN.BEFORE
andRUN.AFTER
are just syntax sugar for"${RUN}" <command>
, which is not enormously useful.So, I propose adding the
HOOK.BEFORE
andHOOK.AFTER
, so that the above could work if I replaceRUN.AFTER
withHOOK.AFTER
.Another option is to make
upgrade
call other commands using a wildcard, i.e.The text was updated successfully, but these errors were encountered: