I’m trying to pull a json/yaml for an existing capability out of the CLI to use as an example, and the command to fetch a particular locale is reverting back to the list of locales when the -j
or -y
flag is included. This is using the 1.0.0-beta.15 version of the CLI, and using the commonsmall09402.listExample
example that @nayelyz posted in another topic:
- List the available locales (
smartthings capabilities:translations commonsmall09402.listExample
):
────────
# Tag
────────
1 en
────────
- Get a json of #1 (
smartthings capabilities:translations commonsmall09402.listExample -j
):
[
{
"tag": "en"
}
]
- Get the details for a particular locale (
smartthings capabilities:translations commonsmall09402.listExample 1 en
):
Tag: en
Attributes:
────────────────────────────────────────────────────────────────────────────────────────────
Name Label Description Template
attr Attribute label {{attribute}} of {{device.label}} is {{value}}
attr.option3 list option 3
attr.option1 list option 1
attr.option2 list option 2
────────────────────────────────────────────────────────────────────────────────────────────
Commands:
───────────────────────────────────────
Name Label Description
setAttr
setAttr.value undefined
───────────────────────────────────────
- Try to get a json of #3 (
smartthings capabilities:translations commonsmall09402.listExample 1 en -j
) but the result is the same as #2:
[
{
"tag": "en"
}
]