Skip to content
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

add TOME_SCRIPT_ROOT environment variable #46

Merged
merged 5 commits into from
Sep 14, 2023
Merged

Conversation

toumorokoshi
Copy link
Owner

@toumorokoshi toumorokoshi commented Sep 12, 2023

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.
tome run satisfies a use case where one would like to re-use
tome's script navigation functionality, but in an environment
that is not an interactive shell.

This could be useful in a situation where one would like to
share scripts across a local and deployed envioronment.

tome run does an execve to effectively become the function
invoked: although this is less cross-platform compatible, it
results in the simplest method to reduce complications like
buffer sizes handing off data in intermediary pipes.

refactoring some finder logic out for re-use.

fixes #40.
adding a test to verify new tome run behavior.
@toumorokoshi
Copy link
Owner Author

@markstos here's the variable from #41. Since it's using a constant env var name vs the variable one, I'll wait for your LGTM.

@markstos
Copy link
Contributor

LGTM, thanks!

@toumorokoshi toumorokoshi merged commit e3a2b17 into master Sep 14, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wish: support _SUB_ROOT like sub
2 participants