Last active
June 25, 2020 14:19
-
-
Save juan-medina/eb33fabc6781332f3202652658400780 to your computer and use it in GitHub Desktop.
creating commands options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Command("example command" | |
| "attribute1" to "value1", | |
| "attribute2" to 123, | |
| "attribute3" to false, | |
| "attribute4" to 125.5 | |
| ) | |
| Command.create("example command" | |
| "attribute1" to "value1", | |
| "attribute2" to 123, | |
| "attribute3" to false, | |
| "attribute4" to 125.5 | |
| ) | |
| Command.create("example command").payload( | |
| "attribute1" to "value1", | |
| "attribute2" to 123, | |
| "attribute3" to false, | |
| "attribute4" to 125.5 | |
| ) | |
| Command.create("example command") { | |
| +("attribute1" to "value1") | |
| +("attribute2" to 123) | |
| +("attribute3" to false) | |
| +("attribute4" to 125.5) | |
| } | |
| Command.create("example command") { | |
| attribute("attribute1" to "value1") | |
| attribute("attribute2" to 123) | |
| attribute("attribute3" to false) | |
| attribute("attribute4" to 125.5) | |
| } | |
| Command.create("example command") { | |
| attribute("attribute1").value("value1") | |
| attribute("attribute2".value(123) | |
| attribute("attribute3".value(false) | |
| attribute("attribute4".value(25.5) | |
| } | |
| Command.create("example command") { | |
| attribute { | |
| name("attribute1") | |
| value("value1") | |
| } | |
| attribute { | |
| name("attribute2") | |
| value(123) | |
| } | |
| attribute { | |
| name("attribute3") | |
| value(false) | |
| } | |
| attribute { | |
| name("attribute4") | |
| value(25.5) | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment