Bluetooth: CAP and HAP: Shell: Replace - with _ in commands

The dash (-) makes clang-format unhappy, and most other commands
use underscore (_) instead.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2024-02-06 13:48:04 +01:00 committed by Fabio Baltieri
commit df3fcc9b1f
4 changed files with 25 additions and 24 deletions

View file

@ -56,11 +56,12 @@ the optionally included CSIS instance by calling (:code:`cap_initiator discover`
cap_initiator - Bluetooth CAP initiator shell commands
Subcommands:
discover :Discover CAS
unicast-start :Unicast Start [csip] [sinks <cnt> (default 1)] [sources <cnt>
unicast_start :Unicast Start [csip] [sinks <cnt> (default 1)] [sources <cnt>
(default 1)] [conns (<cnt> | all) (default 1)]
unicast-list :Unicast list streams
unicast-update :Unicast Update <all | stream [stream [stream...]]>
unicast-stop :Unicast stop all streams
unicast_list :Unicast list streams
unicast_update :Unicast Update <all | stream [stream [stream...]]>
unicast_stop :Unicast stop all streams
unicast_cancel :Unicast cancel current procedure
Before being able to perform any stream operation, the device must also perform the
:code:`bap discover` operation to discover the ASEs and PAC records. The :code:`bap init`

View file

@ -1215,18 +1215,18 @@ SHELL_STATIC_SUBCMD_SET_CREATE(
cap_initiator_cmds,
#if defined(CONFIG_BT_BAP_UNICAST_CLIENT)
SHELL_CMD_ARG(discover, NULL, "Discover CAS", cmd_cap_initiator_discover, 1, 0),
SHELL_CMD_ARG(unicast-start, NULL,
SHELL_CMD_ARG(unicast_start, NULL,
"Unicast Start [csip] [sinks <cnt> (default 1)] "
"[sources <cnt> (default 1)] "
"[conns (<cnt> | all) (default 1)]",
cmd_cap_initiator_unicast_start, 1, 7),
SHELL_CMD_ARG(unicast-list, NULL, "Unicast list streams", cmd_cap_initiator_unicast_list,
1, 0),
SHELL_CMD_ARG(unicast-update, NULL, "Unicast Update <all | stream [stream [stream...]]>",
SHELL_CMD_ARG(unicast_list, NULL, "Unicast list streams", cmd_cap_initiator_unicast_list, 1,
0),
SHELL_CMD_ARG(unicast_update, NULL, "Unicast Update <all | stream [stream [stream...]]>",
cmd_cap_initiator_unicast_update, 2, CAP_UNICAST_CLIENT_STREAM_COUNT),
SHELL_CMD_ARG(unicast-stop, NULL, "Unicast stop all streams",
SHELL_CMD_ARG(unicast_stop, NULL, "Unicast stop all streams",
cmd_cap_initiator_unicast_stop, 1, 0),
SHELL_CMD_ARG(unicast-cancel, NULL, "Unicast cancel current procedure",
SHELL_CMD_ARG(unicast_cancel, NULL, "Unicast cancel current procedure",
cmd_cap_initiator_unicast_cancel, 1, 0),
#if UNICAST_SINK_SUPPORTED
SHELL_CMD_ARG(ac_1, NULL, "<sink preset>", cmd_cap_ac_1, 2, 0),

View file

@ -294,21 +294,21 @@ SHELL_STATIC_SUBCMD_SET_CREATE(has_cmds,
"Initialize the service and register type "
"[binaural | monaural(default) | banded] [sync] [independent]",
cmd_has_register, 1, 3),
SHELL_CMD_ARG(preset-reg, NULL, "Register preset <index> <properties> <name>",
SHELL_CMD_ARG(preset_reg, NULL, "Register preset <index> <properties> <name>",
cmd_preset_reg, 4, 0),
SHELL_CMD_ARG(preset-unreg, NULL, "Unregister preset <index>", cmd_preset_unreg, 2, 0),
SHELL_CMD_ARG(preset-list, NULL, "List all presets", cmd_preset_list, 1, 0),
SHELL_CMD_ARG(preset-set-avail, NULL, "Set preset as available <index>",
SHELL_CMD_ARG(preset_unreg, NULL, "Unregister preset <index>", cmd_preset_unreg, 2, 0),
SHELL_CMD_ARG(preset_list, NULL, "List all presets", cmd_preset_list, 1, 0),
SHELL_CMD_ARG(preset_set_avail, NULL, "Set preset as available <index>",
cmd_preset_avail, 2, 0),
SHELL_CMD_ARG(preset-set-unavail, NULL, "Set preset as unavailable <index>",
SHELL_CMD_ARG(preset_set_unavail, NULL, "Set preset as unavailable <index>",
cmd_preset_unavail, 2, 0),
SHELL_CMD_ARG(preset-active-set, NULL, "Set active preset <index>",
SHELL_CMD_ARG(preset_active_set, NULL, "Set active preset <index>",
cmd_preset_active_set, 2, 0),
SHELL_CMD_ARG(preset-active-get, NULL, "Get active preset", cmd_preset_active_get, 1, 0),
SHELL_CMD_ARG(preset-active-clear, NULL, "Clear selected preset",
SHELL_CMD_ARG(preset_active_get, NULL, "Get active preset", cmd_preset_active_get, 1, 0),
SHELL_CMD_ARG(preset_active_clear, NULL, "Clear selected preset",
cmd_preset_active_clear, 1, 0),
SHELL_CMD_ARG(set-name, NULL, "Set preset name <index> <name>", cmd_preset_name_set, 3, 0),
SHELL_CMD_ARG(features-set, NULL, "Set hearing aid features "
SHELL_CMD_ARG(set_name, NULL, "Set preset name <index> <name>", cmd_preset_name_set, 3, 0),
SHELL_CMD_ARG(features_set, NULL, "Set hearing aid features "
"[binaural | monaural(default) | banded] [sync] [independent]",
cmd_features_set, 1, 3),
SHELL_SUBCMD_SET_END

View file

@ -259,11 +259,11 @@ static int cmd_has_client(const struct shell *sh, size_t argc, char **argv)
SHELL_STATIC_SUBCMD_SET_CREATE(has_client_cmds,
SHELL_CMD_ARG(init, NULL, HELP_NONE, cmd_has_client_init, 1, 0),
SHELL_CMD_ARG(discover, NULL, HELP_NONE, cmd_has_client_discover, 1, 0),
SHELL_CMD_ARG(presets-read, NULL, "<start_index_hex> <max_count_dec>",
SHELL_CMD_ARG(presets_read, NULL, "<start_index_hex> <max_count_dec>",
cmd_has_client_read_presets, 3, 0),
SHELL_CMD_ARG(preset-set, NULL, "<index_hex> [sync]", cmd_has_client_preset_set, 2, 1),
SHELL_CMD_ARG(preset-next, NULL, "[sync]", cmd_has_client_preset_next, 1, 1),
SHELL_CMD_ARG(preset-prev, NULL, "[sync]", cmd_has_client_preset_prev, 1, 1),
SHELL_CMD_ARG(preset_set, NULL, "<index_hex> [sync]", cmd_has_client_preset_set, 2, 1),
SHELL_CMD_ARG(preset_next, NULL, "[sync]", cmd_has_client_preset_next, 1, 1),
SHELL_CMD_ARG(preset_prev, NULL, "[sync]", cmd_has_client_preset_prev, 1, 1),
SHELL_SUBCMD_SET_END
);