redb0 / redb0/ping-scanner

Вывод в таблицу и json

Open
#12 0 comments 0 reactions 1 assignee View on GitHub

@redb0 is already working on this.

Since Sep 12, 2026.

Dominant language
Go
Stars
0
Forks
0
Avg merge
25m
Merged PRs (30d)
3

Description

Вывод оформляется как таблица [URL | Статус | Время ответа | Ошибка]: строки Up зелёные, Down красные; цвет отключается, если stdout не терминал (пайп).

Флаг --json выдаёт машинно-читаемый результат (включая сводку) вместо таблицы.

  • таблица со столбцами URL / Статус / Время ответа / Ошибка
  • «Статус» = UP 200 / DOWN 503; «Ошибка» = reason (для 5xx остаётся пусто)
  • строки Up — зелёные, Down — красные (в терминале)
  • при пайпе (не TTY) ANSI-коды не выдаются
  • --json выдаёт валидный JSON со всеми полями + сводкой
  • сводка присутствует в обоих режимах

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.