Skip to content

Instantly share code, notes, and snippets.

@juan-medina
Last active June 25, 2020 14:19
Show Gist options
  • Select an option

  • Save juan-medina/eb33fabc6781332f3202652658400780 to your computer and use it in GitHub Desktop.

Select an option

Save juan-medina/eb33fabc6781332f3202652658400780 to your computer and use it in GitHub Desktop.
creating commands options
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