mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 07:10:19 +00:00
MG-888 - Update things SDK tests (#2328)
Signed-off-by: 1998-felix <felix.gateru@gmail.com>
This commit is contained in:
@@ -99,27 +99,6 @@ var cmdThings = []cobra.Command{
|
||||
logOK()
|
||||
},
|
||||
},
|
||||
{
|
||||
Use: "identify <thing_key>",
|
||||
Short: "Identify thing",
|
||||
Long: "Validates thing's key and returns its ID\n" +
|
||||
"Usage:\n" +
|
||||
"\tmagistrala-cli things identify <thing_key>\n",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if len(args) != 1 {
|
||||
logUsage(cmd.Use)
|
||||
return
|
||||
}
|
||||
|
||||
i, err := sdk.IdentifyThing(args[0])
|
||||
if err != nil {
|
||||
logError(err)
|
||||
return
|
||||
}
|
||||
|
||||
logJSON(i)
|
||||
},
|
||||
},
|
||||
{
|
||||
Use: "update [<thing_id> <JSON_string> | tags <thing_id> <tags> | secret <thing_id> <secret> ] <user_auth_token>",
|
||||
Short: "Update thing",
|
||||
|
||||
Reference in New Issue
Block a user