Skip to content

v0.2.1

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Jun 11:40
· 4 commits to main since this release
v0.2.1
d66cfa8

tt now prints in color when it writes to a terminal. A table comes out inside
a rounded border with colored headers, and JSON output has its keys and values
colorized. Pipe the output into a file or another command and it stays plain, so
nothing downstream sees escape codes.

This comes from upgrading the any-cli/kit
framework to v0.3.3, whose renderer now draws tables with lipgloss. Nothing
changed about what tt reads or about any record; only how a terminal shows it.
A wide table also shrinks to fit the terminal width now instead of wrapping.

Control the color

tt user tiktok                  # colored table on a terminal
tt user tiktok --color never    # force plain
tt user tiktok --color always   # force color even through a pipe
tt user tiktok | less -R        # less shows the color with -R

Full notes: https://tiktok-cli.tamnd.com/release-notes/v0-2-1/

Install

go install github.com/tamnd/tiktok-cli/cmd/tt@latest
docker run --rm ghcr.io/tamnd/tiktok:0.2.1 --help

Pure-Go binaries for Linux, macOS, Windows, and FreeBSD, plus deb/rpm/apk
packages, a multi-arch GHCR image, checksums, SBOMs, and a cosign signature.