-
Notifications
You must be signed in to change notification settings - Fork 2
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
wish: support _SUB_ROOT like sub
#41
Comments
Hey! I think this is reasonable. It seems like it's best as a part of the output returned by init? I was originally thinking of just exporting as part of the |
now that #44 is closed, I think we can talk about this issue. I was looking at implementing it: the one thing is the variable name (e.g. how about a constant like |
Having an environment variable that contains the script root directory enables storing dependent scripts in that directory. fixes #41.
Having an environment variable that contains the script root directory enables storing dependent scripts in that directory. fixes #41.
Having an environment variable that contains the script root directory enables storing dependent scripts in that directory. fixes #41.
Fixed and shipped in https://github.com/toumorokoshi/tome/releases/tag/v0.11.0. Thanks! |
One feature from
sub
I don't see here is thatsub
provides to scripts an environment variable containing the "root" directory of the project.It's documented here in the README:
https://github.com/qrush/sub/blob/4bcb94f0c14f911fc77ac642318c5d19b359c5cd/README.md?plain=1#L58
So, if a project is named
rush
, an environment variable named_RUSH_ROOT
would be set.Since compatibility with
sub
seems to be a goal, it would be nice to support this, or document the recommended refactoring for people converting scripts.The text was updated successfully, but these errors were encountered: