• Stars
    star
    209
  • Rank 187,258 (Top 4 %)
  • Language
    Go
  • License
    MIT License
  • Created over 1 year ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐱 cat alternative written in Go.

gat

GitHub release (latest by date) GitHub Workflow Status Maintainability Go Report Card LICENSE

cat alternative written in Go.

demo

Installation

Homebrew

$ brew install gat

Homebrew Tap

$ brew install koki-develop/tap/gat

go install

$ go install github.com/koki-develop/gat@latest

Releases

Download the binary from the releases page.

Usage

$ gat --help
cat alternative written in Go.

Usage:
  gat [file]... [flags]

Flags:
  -c, --force-color     force colored output
  -f, --format string   output format (default "terminal256")
  -h, --help            help for gat
  -l, --lang string     language for syntax highlighting
      --list-formats    print a list of supported output formats
      --list-langs      print a list of supported languages for syntax highlighting
      --list-themes     print a list of supported themes with preview
  -p, --pretty          whether to format a content pretty
  -t, --theme string    highlight theme (default "monokai")
  -v, --version         version for gat

-l, --lang

Explicitly set the language for syntax highlighting.
See languages.md for valid languages.

-f, --format

Set the output format ( default: terminal256 ).
See formats.md for valid formats.

-t, --theme

Set the highlight theme ( default: monokai ).
See themes.md for valid thtmes.

-p, --pretty

Format a content pretty.
For unsupported languages, this flag is ignored.

-c, --force-color

gat disables colored output when piped to another program.
Settings the --force-color forces colored output to be enabled.
This is useful, for example, when used in combination with the less -R command.

It is also useful to declare the following function to allow gat to be used with a pager.

function gess() {
  gat --force-color "$@" | less -R
}

Print Image

If your terminal supports Sixel, you can print images.

Supported image formats include:

  • JPEG
  • PNG
  • GIF (animation not supported)

LICENSE

MIT

More Repositories

1

clive

⚡ Automates terminal operations.
Go
313
star
2

qiita-lgtm-ranking

Qiita のいいねランキング記事を毎日自動更新するシステム。
Go
70
star
3

sheep

🐑 Sleep with Sheep.
Go
58
star
4

gh-grass

🍀 Grow github grass to console.
Go
43
star
5

go-fzf

🔍 Fuzzy Finder CLI and Library.
Go
42
star
6

badge-generator

🏅 シンプルなバッジ生成サービス。
TypeScript
33
star
7

qiita-ranking

👑 Qiita のランキング記事を自動更新するシステム。
Go
31
star
8

xbar-plugin-github

An xbar plugin to display GitHub Pull Requests and notifications.
JavaScript
30
star
9

gogogo

バックエンド・フロントエンド・インフラ・ CI/CD を Go で書いたサンプル Web アプリケーション。
Go
20
star
10

typingo

⌨️ Typing game written in Go
Go
18
star
11

lgtmgen

🖼️ LGTM Generator
Go
17
star
12

lgtm-generator

TypeScript
15
star
13

docker-tags

🐳 Command line tool to get a list of tags for docker images.
Go
13
star
14

mingo

Go also wants to be minified.
Go
13
star
15

gotrash

🗑️ rm alternative written in Go.
Go
11
star
16

askai

🤖 AI is with you.
Go
11
star
17

kansai

💭 kansAI is a CLI tool for converting text to Kansai dialect.
Go
8
star
18

slp

💤 sleep command with rich progress bar.
Go
5
star
19

gh-q

📂 gh extension to manage GitHub repositories like `ghq`
Go
4
star
20

hub-purge-action

🧹 Action to clear GitHub image caches.
JavaScript
4
star
21

xbar-plugins

xbar のプラグイン。自分用。
Go
3
star
22

cloudfront-oac-with-terraform-example

CloudFront から S3 へのアクセス制御に OAC を利用する Terraform のサンプルコード
HCL
3
star
23

bsky-tech-trending-bot

技術に関するトレンドニュースを流す Bluesky ボット。
TypeScript
3
star
24

gh-actions-oidc-example

GitHub Actions で OIDC を使用するサンプルコード
HCL
3
star
25

ego

📣 echo alternative written in Go.
Go
2
star
26

v-spinner

🌀 A library for V to display customizable spinners on the command line.
V
2
star
27

xvert

↔️ Convert between JSON, YAML, TOML, and various other formats.
Ruby
2
star
28

thredot-roadmap

thredot.org roadmap
2
star
29

aws-masking

🕶️ Enhance your security by auto-hiding sensitive information on AWS Management Console.
TypeScript
2
star
30

tailwindcss-tooltip-example

Tailwind CSS でツールチップを作成するサンプルコード。
TypeScript
2
star
31

alexa-skill-gpt

Alexa Skill Powered by GPT
JavaScript
2
star
32

homebrew-tap

my homebrew tap 🍺
Ruby
1
star
33

koki-develop.github.io

Koki Sato
TypeScript
1
star
34

aws-monitoring

AWS リソースのモニタリング関連作成用 Terraform コード。
HCL
1
star
35

todoist-cli

CLI Client for Todoist.
Go
1
star
36

koki-develop

1
star
37

ogp-messenger

OGP 画像でメッセージを発信できるツール。
TypeScript
1
star
38

checkip

📍 Simple REST API that returns the client's IP address.
HCL
1
star
39

todoist-go

Go client library for Todoist REST API.
Go
1
star
40

tf-import-example

HCL
1
star
41

ecr-retag-image-example

ecr-retag-image-example
Shell
1
star
42

hello-cli

Hello, CLI
Go
1
star
43

terraform-on-codebuild-example

AWS CodeBuild 上で terraform を実行するサンプルコード。
HCL
1
star
44

go-cli-template

Go CLI Application Template
Go
1
star
45

chipichapa

Go
1
star
46

my-feeds

自分用
TypeScript
1
star
47

litetodo

Go
1
star
48

ollamit

A command-line tool to generate commit messages with ollama.
Go
1
star
49

ts-action-template

This is a template for creating GitHub Actions in TypeScript.
TypeScript
1
star
50

terraform-provider-js

(WIP) Next-generation AltJS
Go
1
star