CLI to run simple health checks against endpoints
Note that we introduced styling from https://github.com/charmbracelet/lipgloss
# Basic Authentication with env vars
# CU_USER=admin CU_PASS=pass
$ checkup listen -e http://localhost:8080 -a
name: Test Name
endpoint: https://duckduckgo.com
tests:
- code: 200
paths:
- /farm
- /something
- /else
- code: 404
paths:
- /this
- /not
- /found
{
"name": "Exam Name",
"endpoint": "https://google.com",
"tests": [
{
"code": 200,
"paths": [
"/farm",
"/something",
"/else"
]
},
{
"code": 404,
"paths": [
"/this",
"/not",
"/found"
]
}
]
}