vzvu3k6k / t

t is a command line tool for testing on your terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

t

t is a command line tool for testing on your terminal.

Terminal

Installation

$ go get github.com/yusukebe/t/cmd/t

Usage

Basic usage:

$ t hello hello # => PASS
$ t hello hell # => FAIL

With pipe:

$ echo "hello" | t hello # => PASS

Eval:

$ t -e 10 "5*2" # => PASS

With operator

$ t -o ">" 10 "3*2" # => PASS

Regular expression:

$ t -m 'hello+' helloooooo # => PASS

With jq:

$ echo '{ "message": "hello" }' | jq -r .message | t hello # => PASS
$ echo '{ "number": 5 }' | jq -r .number | t 10 -o '>' # => PASS

With rj, test the status is not error:

$ rj http://example.com/ | jq -r .code | t 500 -o '>'

Author

Yusuke Wada https://github.com/yusukebe

License

MIT

About

t is a command line tool for testing on your terminal.

License:MIT License


Languages

Language:Go 100.0%