Skip to content

Commit

Permalink
Expose global accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Dec 11, 2023
1 parent 6b5c146 commit 8b6d68e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public abstract class SkippyExtension @Inject constructor(objects: ObjectFactory
configs.maybeCreate(GLOBAL_TOOL)
}

public fun global(action: Action<SkippyGradleConfig>) {
action.execute(configs.maybeCreate(GLOBAL_TOOL))
}

public fun config(name: String, action: Action<SkippyGradleConfig>) {
action.execute(configs.maybeCreate(name))
}
Expand Down

0 comments on commit 8b6d68e

Please sign in to comment.