Skip to content

Commit f3b84b0

Browse files
committed
feature: direct block access execute function
1 parent 0eb7095 commit f3b84b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/dev/fruxz/brigadikt/Branch.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ open class Branch(
4747
this.execution = execution
4848
}
4949

50+
@BrigadiKtDSL
51+
fun execute(block: CommandContext.() -> Unit) =
52+
execute(CommandExecutor(block))
53+
5054
// requirements
5155

5256
@BrigadiKtDSL

0 commit comments

Comments
 (0)