hcp

Crates.iohcp
lib.rshcp
version0.2.0
sourcesrc
created_at2022-02-11 17:41:11.833719
updated_at2022-02-11 18:12:21.499577
descriptionUtility for running and subprocess and pinging healthchecks.io with result
homepagehttps://github.com/drewkett/hcp
repositoryhttps://github.com/drewkett/hcp
max_upload_size
id530851
size34,616
Andrew Burkett (drewkett)

documentation

https://github.com/drewkett/hcp

README

hcp (short for healthcheck ping) is a simple utility that wraps terminal commands, sending a start and end notification to healthchecks.io. It will report failures if the command exits with a non-zero return. It will also include the output from stdout and stderr from the command to healthchecks

hcp [--hcp-id HCP_ID] [--hcp-tee] [--hcp-ignore-code] [cmd [args...]]
    
    HCP_ID can be set using an environment variable
    --hcp-id HCP_ID    Sets the healthchecks id. This can also be set using the
                     environment variable HCP_ID
    --hcp-ignore-code Ignore the return code from cmd. Also available using HCP_IGNORE_CODE
    --hcp-tee         Controls whether to also output the cmd stdout/stderr to the local
                     stdout/stderr. By default the output from the cmd will only get
                     passed as text to healthchecks. This option can also be enabled
                     using the environment variable HCP_TEE. Only the existance of the
                     variable is checked
    [cmd [args...]]  If no command is passed, the healthcheck will be notified as a 
                     success with the text 'No command given'

Build Instructions

This utility is written in Rust. The normal build procedure is used

cargo build --release
Commit count: 57

cargo fmt