target: rewrite command 'target types' as COMMAND_HANDLER
commitd9d698103e974b2a94c611864cccb92359509b7d
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 19 Dec 2022 22:54:10 +0000 (19 23:54 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 25 Mar 2023 18:15:43 +0000 (25 18:15 +0000)
treed89293455f0b532cd0fc5a10c290ac1ee92f8a99
parent26f457896c456c57a57719e484d055d444ba67ee
target: rewrite command 'target types' as COMMAND_HANDLER

Print one entry per line.
While there add the mandatory 'usage' field.

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