(args)
| 238 | |
| 239 | |
| 240 | def list_main(args): |
| 241 | config_path = get_config_path() |
| 242 | |
| 243 | print("list of baselines") |
| 244 | print() |
| 245 | indent = " " * 4 |
| 246 | count = 0 |
| 247 | for path, dirs, files in os.walk(config_path): |
| 248 | path = os.path.relpath(path, config_path) |
| 249 | if path == "template": |
| 250 | continue |
| 251 | depth = path.count("/") |
| 252 | if path != ".": |
| 253 | depth += 1 |
| 254 | print("%s%s" % (indent * depth, os.path.basename(path))) |
| 255 | for file in sorted(files): |
| 256 | print("%s%s" % (indent * (depth + 1), file)) |
| 257 | count += len(files) |
| 258 | print() |
| 259 | print("total: %d baselines" % count) |
| 260 | |
| 261 | |
| 262 | command = { |
nothing calls this directly
no test coverage detected