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

SOLVING TODO: determine if this is necessary or not, since this breaks rm o… #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Anda275
Copy link

@Anda275 Anda275 commented Jan 9, 2024

This PR solves:

  • the TODO in the /crates/nu-test-support/src/macros.rs file.
    Here, there was integrated an option to specify a custom plugin path in the 'nu_run_test' and nu_with_plugin_run_test functions. This allows testing with plugins without affecting the user's local environment, ensuring a more controlled and isolated testing setup.
    Specifically, a custom_plugin_path field was added to the NuOpts struct and utilized within the nu_with_plugin_run_test function. If a custom plugin path is provided in the options, it's set as an environment variable for the command that runs the test. This modification enhances the flexibility and robustness of the testing environment in the Nushell.

  • the TODO in the /src/terminal.rs file.
    Here, the signal(SIGCHLD, SigHandler::SigIgn) call became conditional, by executing it only on non-macOS systems to avoid breaking the rm command on macOS.

@alexandruradovici
Copy link

Please explain your pull request.

@Anda275
Copy link
Author

Anda275 commented Jan 15, 2024

@alexandruradovici done

@alexandruradovici
Copy link

Use the 3rd person and make the text more visible (use lists, etc).

@Anda275
Copy link
Author

Anda275 commented Jan 15, 2024

@alexandruradovici done

@@ -72,10 +72,10 @@ macro_rules! nu {
// For all other options, we call `.into()` on the `$value` and hope for the best. ;)
(
@options [ $($options:tt)* ]
$field:ident : $value:expr,
custom_plugin_path: $value:expr,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this?

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.

2 participants