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

Expose RichUpdateReport & DependencyFilter #78

Merged
merged 3 commits into from
Apr 4, 2017
Merged

Expose RichUpdateReport & DependencyFilter #78

merged 3 commits into from
Apr 4, 2017

Conversation

dwijnand
Copy link
Member

Fixes #42


/** Obtains all successfully retrieved files matching all provided filters. An unspecified argument matches all files. */
def select(configuration: ConfigurationFilter = configurationFilter(), module: ModuleFilter = moduleFilter(), artifact: ArtifactFilter = artifactFilter()): Seq[File] =
def select(
configuration: ConfigurationFilter = configurationFilter(),
Copy link
Member

Choose a reason for hiding this comment

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

I think we should avoid default args.

Copy link
Member Author

Choose a reason for hiding this comment

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

Is overloading ok? 3 versions with (undefaulted) ConfigurationFilter, ModuleFilter and ArtifactFilter?

My motivation is (attempts at) source-compatibility with 0.13.

Copy link
Member Author

@dwijnand dwijnand Mar 31, 2017

Choose a reason for hiding this comment

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

+1 version with all 3 undefaulted too. That would cover the 3 use-cases I see in Scala.js (both its build and its sbt plugins).

Copy link
Member

Choose a reason for hiding this comment

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

Yea. Overloading is fine.

@eed3si9n eed3si9n merged commit 9b0818f into sbt:1.0 Apr 4, 2017
@dwijnand dwijnand deleted the expose-rich-update-report branch April 4, 2017 05:21
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.

None yet

2 participants