add output format option

This commit is contained in:
Simon Vieille 2024-07-22 13:32:47 +02:00
commit 234fb37b82
Signed by: deblan
GPG key ID: 579388D585F70417
4 changed files with 84 additions and 22 deletions

View file

@ -25,3 +25,12 @@ $ expiration-check certificates -d example.com -d other-example.com -d mail.exam
| mail.example.com | XXX | YYYY-MM-DD HH:MM:SS |
+-------------------+------+---------------------+
```
You can specify an ouput format using `--format` or `-f`:
- `table` (default)
- `json`
- `csv`
- `tsv`
- `html`
- `markdown`