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

feat: allows for multiple directory options #188

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sudolibre
Copy link

@sudolibre sudolibre commented Dec 16, 2024

This PR allows users to supply multiple directory options as described in Issue #186.

In order to minimize API changes and make this backwards compatible we keep the existing WithDirectory and --directory args and allow them to be supplied multiple times. For example:

svu.Next(svu.WithDirectory("go.mod"), svu.WithDirectory("cmd/app"))
svu next --directory go.mod --directory cmd/app

Previous users may have been passing an empty string so we check this as a special case in gitLog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant