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 a starter toolkit to run the tests #47

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Conversation

amtoine
Copy link
Owner

@amtoine amtoine commented Oct 28, 2023

this PR adds a very simple toolkit.nu to run the tests of nu-git-manager without worrying about use nupm and the exact commands to run:

use toolkit.nu  # i use a hook for that
toolkit test

@amtoine amtoine added the enhancement New feature or request label Oct 28, 2023
@melMass
Copy link
Collaborator

melMass commented Oct 30, 2023

Nice! Can we check the availability of a module before "use"?
Like this could be catch and display a link to nupm's repo or something like that?

@amtoine amtoine merged commit ce0f9c3 into main Oct 30, 2023
@amtoine amtoine deleted the add-toolkit-to-run-tests branch October 30, 2023 16:57
@amtoine
Copy link
Owner Author

amtoine commented Oct 30, 2023

Nice! Can we check the availability of a module before "use"? Like this could be catch and display a link to nupm's repo or something like that?

we might be able to use something like

$env.NU_LIB_DIRS? | default [] | append $NU_LIB_DIRS | each { ls --short-names $in | find "nupm" } | flatten | is-empty

this gives me false currently because Nupm is installed 😏

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.

2 participants