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

Documentation for sbt-plugin scroogeBuildOptions is out of date #287

Open
dossett opened this issue Feb 14, 2018 · 6 comments
Open

Documentation for sbt-plugin scroogeBuildOptions is out of date #287

dossett opened this issue Feb 14, 2018 · 6 comments

Comments

@dossett
Copy link
Contributor

dossett commented Feb 14, 2018

The documentation refers to scroogeBuildOptions as a Seq[String] but it is now something related to Seq[ServiceOption], see: https://github.com/twitter/scrooge/blob/develop/scrooge-sbt-plugin/src/main/scala/com/twitter/ScroogeSBT.scala#L64

If it possible to add options by creating ServiceOptions that should be explained too.

@yufangong
Copy link
Contributor

Thanks for the report, @dossett. Are you interested in fixing the documentation?

@dossett
Copy link
Contributor Author

dossett commented Feb 14, 2018

Hi @yufangong I would be happy to, once i figure out how to use the new type. Do you know of any examples of the verbose option being set with the new type?

@yufangong
Copy link
Contributor

Thank you and apologize for the out-dated doc. Not sure if this will answer your question, but, we have two ServiceOptions so far, and both of them have been set as default WithFinagle and WithAsClosable.
I find this PR did this change, and it might be helpful to look at it and figure out what we missed in the documentation if you are willing to update the doc.

@dossett
Copy link
Contributor Author

dossett commented Feb 15, 2018

Thank you! If I'm understanding that PR correctly, adding a verbose option would require creating a new ServiceOption like case object WithVerbose extends ServiceOption and then adding logic to Generator.scala to pass a verbose option to the compiler if WithVerbose is present?

@dossett
Copy link
Contributor Author

dossett commented Feb 15, 2018

Just to clarify @yufangong what I mean is that it used to be possible to pass the verbose flag to scrooge with:
scroogeBuildOptions in Compile := Seq("--verbose")

But now it does not seem possible to enable that flag at all. A code change, not just a document update, would be required. Something like case object WithVerbose extends ServiceOption and other code changes to support it. Is that right? If so, I might work on that as well as a documentation update. The verbose flag has been very helpful in the past.

Thank you again!

@yufangong
Copy link
Contributor

@dossett Agreed, couldn't find the verbose option in the plugin. I think what you said above is correct.

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

No branches or pull requests

2 participants