πŸ”¬ Check Something as a Service.
Go Makefile
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
cmd
errors
http/availability
makes
vendor
.gitattributes
.gitignore
.goreleaser.yml
.scrutinizer.yml
.travis.yml
Gopkg.lock
Gopkg.toml
LICENSE
Makefile
README.md
build.go
main.go
main_test.go
pkg_test.go

README.md

check Tweet

Analytics Check Something as a Service.

Patreon Build Status Code Coverage Code Quality License

Usage

Quick start

check urls

Fast website link checker.

$ check urls https://kamil.samigullin.info/
# [200] https://kamil.samigullin.info/
#     β”œβ”€β”€β”€[200] https://howilive.ru/en/
#     β”œβ”€β”€β”€[200] https://kamil.samigullin.info/ru/
#     β”œβ”€β”€β”€[301] https://m.do.co/c/b2a387de5da4 -> (Moved Permanently) -> https://...
#     β”œβ”€β”€β”€[302] https://kamil.samigullin.info/goto?url=https://github.com/kamilsk -> (Found) -> https://...
#     β”œβ”€β”€β”€[302] https://kamil.samigullin.info/goto?url=https://twitter.com/ikamilsk -> (Found) -> https://...
#     └───[302] https://kamil.samigullin.info/goto?url=https://www.linkedin.com/in/kamilsk -> (Found) -> https://...
# [200] https://kamil.samigullin.info/ru/
#     β”œβ”€β”€β”€[200] https://howilive.ru/
#     β”œβ”€β”€β”€[200] https://kamil.samigullin.info/
#     β”œβ”€β”€β”€[301] https://m.do.co/c/b2a387de5da4 -> (Moved Permanently) -> https://...
#     β”œβ”€β”€β”€[302] https://kamil.samigullin.info/goto?url=https://github.com/kamilsk -> (Found) -> https://...
#     β”œβ”€β”€β”€[302] https://kamil.samigullin.info/goto?url=https://twitter.com/ikamilsk -> (Found) -> https://...
#     └───[302] https://kamil.samigullin.info/goto?url=https://www.linkedin.com/in/kamilsk -> (Found) -> https://...
$ check urls https://www.octolab.org/ | grep '\[3[0-9][0-9]\]'
#     β”œβ”€β”€β”€[301] https://m.do.co/c/b2a387de5da4 -> (Moved Permanently) -> https://...
#     β”œβ”€β”€β”€...

Specification

CLI

$ check --help
Usage:
  check [command]

Available Commands:
  completion  Print Bash or Zsh completion
  help        Help about any command
  urls        Check all internal URLs on availability
  version     Show application version

Flags:
  -h, --help   help for check

Use "check [command] --help" for more information about a command.

Installation

Brew

$ brew install kamilsk/tap/check

Binary

$ export VER=1.0.0      # all available versions are on https://github.com/kamilsk/check/releases
$ export REQ_OS=Linux   # macOS and Windows are also available
$ export REQ_ARCH=64bit # 32bit is also available
$ wget -q -O check.tar.gz \
       https://github.com/kamilsk/check/releases/download/"${VER}/check_${VER}_${REQ_OS}-${REQ_ARCH}".tar.gz
$ tar xf check.tar.gz -C "${GOPATH}"/bin/ && rm check.tar.gz

From source code

$ egg github.com/kamilsk/check@^1.0.0 -- make test install

Mirror

$ egg bitbucket.org/kamilsk/check@^1.0.0 -- make test install

egg is an extended go get.

Bash and Zsh completions

You can find completion files here or build your own using these commands

$ check completion bash > /path/to/bash_completion.d/check.sh
$ check completion zsh  > /path/to/zsh-completions/_check.zsh

Notes

  • brief roadmap
    • v1: MVP
    • v2: check redirects
    • v3: check repository
    • v4: check package
    • v5: distributed run
    • integrate with Status, SaaS
  • research
  • tested on Go 1.8, 1.9 and 1.10

@kamilsk @octolab

made with ❀️ by OctoLab