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 multiple path support #101

Merged

Conversation

social-anthrax
Copy link
Contributor

@social-anthrax social-anthrax commented Mar 6, 2023

Closes #95.

Adds support to process multiple paths.
Using the --stamps flag together with multiple paths will now cause an error.

Breaking Changes

  • cargo sweep --toolchains 1 2 3 no longer causes the expected error as 2 and 3 are read as paths.

@@ -518,7 +518,7 @@ fn multiple_paths() -> TestResult {
assert_eq!(final_build_size, size_after_dry_run_clean);

// Run a proper cargo-sweep ("clean") in the target directories
let mut args = vec!["-r", "--time", "0"];
let mut args = vec!["--time", "0"];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We only want to test the functionality for multiple paths, setting both the multiple paths and recursive could cause an error in either one so I just wanted to minimise the test case.

Copy link
Collaborator

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

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

Thanks, this looks good! Just a couple nits :)

src/cli.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
src/cli.rs Show resolved Hide resolved
tests/integration.rs Outdated Show resolved Hide resolved
@social-anthrax social-anthrax requested a review from jyn514 March 6, 2023 17:55
@jyn514 jyn514 merged commit 277f90d into holmgr:master Mar 6, 2023
@jyn514
Copy link
Collaborator

jyn514 commented Mar 6, 2023

Thanks!

@marcospb19 marcospb19 mentioned this pull request Sep 12, 2023
@marcospb19 marcospb19 mentioned this pull request Oct 5, 2023
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.

Accept more than one project
2 participants