This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 9a391c5a821fe5cd77cde4751040ecb021661fea Author: Nicola Ferraro <ni.ferr...@gmail.com> AuthorDate: Mon Dec 16 12:52:34 2019 +0100 Fix #1145: fix documentation for Kotlin --- docs/modules/ROOT/pages/languages/kotlin.adoc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/modules/ROOT/pages/languages/kotlin.adoc b/docs/modules/ROOT/pages/languages/kotlin.adoc index 54f4555..1696205 100644 --- a/docs/modules/ROOT/pages/languages/kotlin.adoc +++ b/docs/modules/ROOT/pages/languages/kotlin.adoc @@ -4,11 +4,17 @@ An integration written in Kotlin looks very similar to a Java one except it can [source,kotlin] ---- -from('timer:tick') - .process { e -> e.getIn().body = 'Hello Camel K!' } - .to('log:info'); +from("timer:tick") + .process { e -> e.getIn().body = "Hello Camel K!" } + .to("log:info") ---- +You can run it with the standard command: + +``` +kamel run example.kts +``` + Camel K extends the Camel Java DSL making it easier to configure the context in which the integration runs using the top level _context_ block [source,kotlin]