client/player: Fix transport.send/receice tab completion
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 14 Dec 2022 21:45:20 +0000 (13:45 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:11:34 +0000 (15:41 +0530)
Commands transport.send/receive were not settings any completion
callback so this makes sure it uses transport_generator to generate the
list of transport that could be used to send.

client/player.c

index a9fdf29..4844890 100644 (file)
@@ -3653,9 +3653,11 @@ static const struct bt_shell_menu transport_menu = {
                                                "Release Transport",
                                                transport_generator },
        { "send",        "<transport> <filename>", cmd_send_transport,
-                                               "Send contents of a file" },
+                                               "Send contents of a file",
+                                               transport_generator },
        { "receive",     "<transport> [filename]", cmd_receive_transport,
-                                               "Get/Set file to receive" },
+                                               "Get/Set file to receive",
+                                               transport_generator },
        { "volume",      "<transport> [value]", cmd_volume_transport,
                                                "Get/Set transport volume",
                                                transport_generator },