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

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

Owner
Similar Resources

ls Xtended : A command line utility which lets you navigate through terminal like a pro 😎.

ls Xtended : A command line utility which lets you navigate through terminal like a pro 😎.

Navigate through terminal like a pro 😎 💻 Demo • ⚗️ Installation • 🐜 Contribution • ❗ Known Issues ❓ Why? It's a pain to cd and ls multiple times to

Dec 14, 2022

Simple command line serial terminal for the Zolatron 64

ZolaTerm Simple command line serial terminal for the Zolatron 64. Written in Go. I'm using Go routines for receiving text (so that it can be displayed

Nov 7, 2021

GoTTY is a simple command line tool that turns your CLI tools into web applications.

GoTTY is a simple command line tool that turns your CLI tools into web applications.

GoTTY - Share your terminal as a web application

Jan 3, 2023

An interactive command-line tool to manage your environments

An interactive command-line tool to manage your environments

goto An interactive command-line tool to manage your environments Overview You always need to login to some Linux machine or connect to a MySQL instan

Jul 11, 2022

Command line tool to show the weather information of your city

go-weather when you type weather city, it will show you the weather of the city you input. Useful API comes from openweathermap.org. You can registe

Nov 5, 2021

Command line tool to copy images from a camera SD card to your hard drive

Command line tool to copy images from a camera SD card to your hard drive

Nov 26, 2021

A simple tool which you can use to move through your directories from the command line

Fe What is Fe ? Fe is a simple tool which you can use to move through your direc

Jan 1, 2022

fofax is a fofa query tool written in go, positioned as a command-line tool and characterized by simplicity and speed.

fofax is a fofa query tool written in go, positioned as a command-line tool and characterized by simplicity and speed.

fofaX 0x00 Introduction fofax is a fofa query tool written in go, positioned as

Jan 8, 2023

Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.

Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.

asciigraph Go package to make lightweight ASCII line graphs ╭┈╯. Installation go get github.com/guptarohit/asciigraph Usage Basic graph package main

Jan 8, 2023
Comments
  • 'go get' for installing executables is deprecated from Go 1.17

    'go get' for installing executables is deprecated from Go 1.17

    References:

    /tmp $ go version
    go version go1.17 linux/amd64
    /tmp $ go get github.com/yusukebe/t/cmd/t
    go get: installing executables with 'go get' in module mode is deprecated.
    	Use 'go install pkg@version' instead.
    	For more information, see https://golang.org/doc/go-get-install-deprecation
    	or run 'go help get' or 'go help install'.
    
  • golang.org/x/crypto/ssh/terminal is moved to golang.org/x/term

    golang.org/x/crypto/ssh/terminal is moved to golang.org/x/term

    Deprecated: this package moved to golang.org/x/term. https://pkg.go.dev/golang.org/x/crypto/ssh/terminal

    commit: https://cs.opensource.google/go/x/crypto/+/4be66e5b658251a93e17d931a68d9c0ecba9f83a

Related tags
An open-source GitLab command line tool bringing GitLab's cool features to your command line
An open-source GitLab command line tool bringing GitLab's cool features to your command line

GLab is an open source GitLab CLI tool bringing GitLab to your terminal next to where you are already working with git and your code without switching

Dec 30, 2022
🌿circumflex is a command line tool for browsing Hacker News in your terminal
🌿circumflex is a command line tool for browsing Hacker News in your terminal

??circumflex is a command line tool for browsing Hacker News in your terminal

Jan 1, 2023
A command line tool to prompt for a value to be included in another command line.

readval is a command line tool which is designed for one specific purpose—to prompt for a value to be included in another command line. readval prints

Dec 22, 2021
The sntr command-line program gives you convenient access to Sentry directly from your terminal.

sntr: all of Sentry at your fingertips The sntr command-line program gives you convenient access to Sentry directly from your terminal. Disclaimer: th

Jan 31, 2022
a python command-line tool which draws basic graphs in the terminal
a python command-line tool which draws basic graphs in the terminal

Termgraph A command-line tool that draws basic graphs in the terminal, written in Python. Graph types supported: Bar Graphs Color charts Multi-variabl

Dec 30, 2022
Holly🪴 o!rdr command line tool to upload replays to it from the terminal

Holly ?? o!rdr command line tool to upload replays to it from the terminal Holly is a CLI that allows you to upload osu! replays to o!rdr from the ter

Apr 25, 2022
git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.
git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.

Table of contents Introduction Reference Contributing Introduction Overview git-xargs is a command-line tool (CLI) for making updates across multiple

Dec 31, 2022
git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command
git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command

git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command. You give git-xargs:

Feb 5, 2022
A command line tool for simplified docker volume command built with go

dockervol A command line tool for simplified docker volume command built with go. Features: Remove anonymous volume (beta) Remove volume by matching n

Dec 18, 2021
Watch your favourite anime using the video player of your choice directly from the command line

anime-cli Watch your favourite anime using the video player of your choice direc

Feb 10, 2022