Commit a7ef8bc
committed
feat(discover):
`robotcode discover` subcommands now emit markdown for human
output. On a coloured TTY rich renders it to themed ANSI and
pages if needed; in a pipe (or with --no-color) the raw markdown
is emitted verbatim. JSON output is unchanged.
- info renders as a field/value table.
- files, suites, tests, tasks emit as bullet lists; tags shows
one bullet per tag with nested tests/tasks when --tests / --tasks
is on.
- all keeps the workspace → suites → tests tree as a nested
markdown list, each level indented two spaces.
- Statistics blocks are markdown tables.
The generic markdown helpers used by results — md_table,
bold_status, path_paren, display_width, the search highlighter
— move from `results/_render.py` to a shared
`cli/_markdown.py` so both commands import them from one place.
Same commit aligns the existing results renderer on the new
label convention: **bold** is reserved for entities (test/suite
/tag names, status); _italic_ marks labels (Tags, Total,
Extracted, Summary, metadata keys); `(path:line)` references
are wrapped in inline-code spans so they read as code tokens.robotcode discover TEXT output is now markdown1 parent 4b94d66 commit a7ef8bc
13 files changed
Lines changed: 1138 additions & 501 deletions
File tree
- docs/03_reference
- packages/runner/src/robotcode/runner/cli
- discover
- results
- tests/robotcode/runner/cli
- discover
- results
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1033 | 1038 | | |
1034 | 1039 | | |
1035 | 1040 | | |
| |||
1040 | 1045 | | |
1041 | 1046 | | |
1042 | 1047 | | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
| |||
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
1152 | 1157 | | |
1153 | 1158 | | |
1154 | 1159 | | |
| |||
1159 | 1164 | | |
1160 | 1165 | | |
1161 | 1166 | | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | 1167 | | |
1168 | 1168 | | |
1169 | 1169 | | |
| |||
1231 | 1231 | | |
1232 | 1232 | | |
1233 | 1233 | | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1234 | 1239 | | |
1235 | 1240 | | |
1236 | 1241 | | |
| |||
1241 | 1246 | | |
1242 | 1247 | | |
1243 | 1248 | | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
1249 | 1249 | | |
1250 | 1250 | | |
1251 | 1251 | | |
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1301 | 1306 | | |
1302 | 1307 | | |
1303 | 1308 | | |
| |||
1308 | 1313 | | |
1309 | 1314 | | |
1310 | 1315 | | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | 1318 | | |
| |||
1365 | 1365 | | |
1366 | 1366 | | |
1367 | 1367 | | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
1368 | 1373 | | |
1369 | 1374 | | |
1370 | 1375 | | |
| |||
1375 | 1380 | | |
1376 | 1381 | | |
1377 | 1382 | | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | 1383 | | |
1384 | 1384 | | |
1385 | 1385 | | |
| |||
2453 | 2453 | | |
2454 | 2454 | | |
2455 | 2455 | | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
2456 | 2461 | | |
2457 | 2462 | | |
2458 | 2463 | | |
| |||
2463 | 2468 | | |
2464 | 2469 | | |
2465 | 2470 | | |
2466 | | - | |
2467 | | - | |
2468 | | - | |
2469 | | - | |
2470 | | - | |
2471 | 2471 | | |
2472 | 2472 | | |
2473 | 2473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
| |||
0 commit comments