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

Allow custom directives to be added to sbt setting #115

Merged
merged 1 commit into from
May 15, 2017

Conversation

pvlugter
Copy link
Member

Minimal changes to have directives in an sbt setting, so that custom directives can be added more easily. Fixes #35.

The example in #35 would become:

paradoxDirectives += { context: Writer.Context =>
  new SignatureDirective(context.location.tree.label)
}

We could also make all parameters for the Writer configurable via sbt settings, but not sure if anything more than custom directives might be used in practice?

Copy link
Contributor

@jrudolph jrudolph left a comment

Choose a reason for hiding this comment

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

LGTM

@eed3si9n eed3si9n merged commit a1a8fa1 into lightbend:master May 15, 2017
@pvlugter pvlugter deleted the directives branch May 15, 2017 21: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.

4 participants