You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: designs/0002-tags.md
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -22,28 +22,26 @@ These commands can be:
22
22
23
23
**list commands**:
24
24
25
-
`thing list --tag <key0>=<value0>,<key1>=<value1>` to list all the things having all the tags passed
25
+
`thing list --tags <key0>=<value0>,<key1>=<value1>` to list all the things having all the tags passed
26
26
27
-
`device list --tag <key0>=<value0>,<key1>=<value1>` to list all the devices having all the tags passed
28
-
29
-
alternative: `--filter` instead of `--tag`
27
+
`device list --tags <key0>=<value0>,<key1>=<value1>` to list all the devices having all the tags passed
30
28
31
29
32
30
**delete commands**:
33
31
34
-
`thing delete --tag <key0>=<value0>,<key1>=<value1>` to delete all the things having all the tags passed
32
+
`thing delete --tags <key0>=<value0>,<key1>=<value1>` to delete all the things having all the tags passed
35
33
36
-
`device delete --tag <key0>=<value0>,<key1>=<value1>` to delete all the devices having all the tags passed
34
+
`device delete --tags <key0>=<value0>,<key1>=<value1>` to delete all the devices having all the tags passed
37
35
38
36
39
37
**ota command**:
40
38
41
-
`ota upload --device-tag <key0>=<value0>,<key1>=<value1> --file <sketch-file.ino.bin>` to perform an upload via ota to all the devices having all the tags passed
39
+
`ota upload --device-tags <key0>=<value0>,<key1>=<value1> --file <sketch-file.ino.bin>` to perform an upload via ota to all the devices having all the tags passed
42
40
43
41
44
42
To be decided, **which flag is mandatory and which is optional**:
45
43
In delete and ota commands, the `--id` flag should become **optional** instead of mandatory.
46
-
Then, if neither `--id` nor `--tag` is passed, the command could return an error telling the user to specify at least one of the two flags.
44
+
Then, if neither `--id` nor `--tags` is passed, the command could return an error telling the user to specify at least one of the two flags.
47
45
On the other hand, if both flags are passed, we could follow different approaches: return an error, use only one flag (only tags or only id), try to use both flags.
48
46
49
47
Another thing to be decided is **how to handle errors**:
0 commit comments