jtag: rewrite command 'jtag names' as COMMAND_HANDLER
commit27741252571d7c34b9049275d02cf6c34b1ae7d2
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 19 Dec 2022 17:08:03 +0000 (19 18:08 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 25 Mar 2023 18:12:52 +0000 (25 18:12 +0000)
tree42e0ed5cb012a385492f5b8cb332fff56e01f15f
parent19e2a0d6af3783e572a80e4cbf0f471f6dbf66e7
jtag: rewrite command 'jtag names' as COMMAND_HANDLER

While there:
- format in a human readable way the output list by using one line
  per tap name;
- add the mandatory 'usage' field.

Change-Id: I295449220c78fac8973478b265413342ea832f61
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7494
Tested-by: jenkins
src/jtag/tcl.c