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 ability to override tmp directory + fix tests #4

Merged
merged 4 commits into from
May 24, 2024

Conversation

marcelohdez
Copy link
Owner

Adding the ability to override the directory used for attempts allows flexibility in the usage of atmpt such as a general purpose new-project-maker by adding e.g. ATMPT_TMP_DIR=~/myprojects to your environment.

This also allows the tests to be more consistent by running conflicting ones in separate directories so they do not clash.

@marcelohdez marcelohdez added the enhancement New feature or request label May 22, 2024
@marcelohdez marcelohdez self-assigned this May 22, 2024
More descriptive and the starting dot will hide it
from Unix systems for when you choose a new tmp dir.
+ put program and file name into const variables
took a lot of brain power to restructure this to work well 🥲
...rather than getting last modified folder.
This makes it more reliable and make more sense especially
when using a custom attempts folder.
@marcelohdez marcelohdez marked this pull request as ready for review May 24, 2024 06:23
@marcelohdez marcelohdez merged commit 04b3889 into master May 24, 2024
3 checks passed
@marcelohdez marcelohdez deleted the tmp-dir-override branch May 24, 2024 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant