{"id":18447656,"url":"https://github.com/koki-develop/gat","last_synced_at":"2026-03-06T11:08:27.970Z","repository":{"id":142257725,"uuid":"612528010","full_name":"koki-develop/gat","owner":"koki-develop","description":"🐱 cat alternative written in Go.","archived":false,"fork":false,"pushed_at":"2025-05-10T22:03:37.000Z","size":7149,"stargazers_count":220,"open_issues_count":6,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-10T23:17:59.128Z","etag":null,"topics":["cli","golang","terminal"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koki-develop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-11T07:58:05.000Z","updated_at":"2025-05-10T22:03:18.000Z","dependencies_parsed_at":"2023-11-02T18:34:19.611Z","dependency_job_id":"870b4af0-ab25-40a0-8d16-b19aabf16590","html_url":"https://github.com/koki-develop/gat","commit_stats":{"total_commits":213,"total_committers":7,"mean_commits":"30.428571428571427","dds":0.2582159624413145,"last_synced_commit":"dc12bc8dce1d5bd889f148163d96b780dd0fe0ab"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fgat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fgat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fgat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fgat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koki-develop","download_url":"https://codeload.github.com/koki-develop/gat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254509477,"owners_count":22082892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","golang","terminal"],"created_at":"2024-11-06T07:14:02.210Z","updated_at":"2026-03-06T11:08:22.915Z","avatar_url":"https://github.com/koki-develop.png","language":"Go","readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"./assets/logo_light.svg#gh-light-mode-only\" \u003e\n\u003cimg src=\"./assets/logo_dark.svg#gh-dark-mode-only\" \u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\ncat alternative written in Go.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/koki-develop/gat/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/koki-develop/gat\" alt=\"GitHub release (latest by date)\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/koki-develop/gat/releases/latest\"\u003e\u003cimg alt=\"GitHub all releases\" src=\"https://img.shields.io/github/downloads/koki-develop/gat/total?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/koki-develop/gat/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/koki-develop/gat/ci.yml?logo=github\" alt=\"GitHub Workflow Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://codeclimate.com/github/koki-develop/gat/maintainability\"\u003e\u003cimg src=\"https://img.shields.io/codeclimate/maintainability/koki-develop/gat?style=flat\u0026amp;logo=codeclimate\" alt=\"Maintainability\"\u003e\u003c/a\u003e\n\u003ca href=\"https://goreportcard.com/report/github.com/koki-develop/gat\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/koki-develop/gat\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n\u003ca href=\"./LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/koki-develop/gat\" alt=\"LICENSE\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./docs/demo.gif\" \u003e\n\u003c/p\u003e\n\n## Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [LICENSE](#license)\n\n## Installation\n\n### Homebrew\n\n```console\n$ brew install gat\n```\n\n### Homebrew Tap\n\n```console\n$ brew install koki-develop/tap/gat\n```\n\n### `go install`\n\n```console\n$ go install github.com/koki-develop/gat@latest\n```\n\n### Releases\n\nDownload the binary from the [releases page](https://github.com/koki-develop/gat/releases/latest).\n\n## Usage\n\n```console\n$ gat --help\ncat alternative written in Go.\n\nUsage:\n  gat [file]... [flags]\n\nFlags:\n  -b, --force-binary      force binary output\n  -c, --force-color       force colored output\n  -f, --format string     output format (default \"terminal256\")\n  -h, --help              help for gat\n  -l, --lang string       language for syntax highlighting\n      --list-formats      print a list of supported output formats\n      --list-langs        print a list of supported languages for syntax highlighting\n      --list-themes       print a list of supported themes with preview\n      --no-resize         do not resize images\n  -p, --pretty            whether to format a content pretty\n  -M, --render-markdown   render markdown\n  -t, --theme string      highlight theme (default \"monokai\")\n  -v, --version           version for gat\n```\n\n### `-l`, `--lang`\n\nExplicitly set the language for syntax highlighting.  \nSee [languages.md](./docs/languages.md) for valid languages.\n\n### `-f`, `--format`\n\nSet the output format ( default: `terminal256` ).  \nAlternatively, it can be set using the `GAT_FORMAT` environment variable.\nSee [formats.md](./docs/formats.md) for valid formats.\n\n### `-t`, `--theme`\n\nSet the highlight theme ( default: `monokai` ).  \nAlternatively, it can be set using the `GAT_THEME` environment variable.\nSee [themes.md](./docs/themes.md) for valid themes.\n\n### `-p`, `--pretty`\n\nFormat a content pretty.  \nFor unsupported languages, this flag is ignored.\n\n### `-M`, `--render-markdown`\n\nRender markdown documents.  \n\n![](./docs/markdown.png)\n\n### `-c`, `--force-color`\n\n`gat` disables colored output when piped to another program.  \nSettings the `--force-color` forces colored output to be enabled.  \nThis is useful, for example, when used in combination with the `less -R` command.\n\n![](/docs/gess.gif)\n\nIt is also useful to declare the following function to allow `gat` to be used with a pager.\n\n```sh\nfunction gess() {\n  gat --force-color \"$@\" | less -R\n}\n```\n\n### Print Image\n\nIf your terminal supports Sixel, you can print images.\n\n![](./docs/image.png)\n\nSupported image formats include:\n\n- JPEG\n- PNG\n- GIF (animation not supported)\n\n## :coffee: Buy me a coffee\n\nIf you like this project, please consider buying me a coffee.\n\n\u003ca href=\"https://www.buymeacoffee.com/koki.sato\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" width=\"217px\" height=\"60px\"\u003e\u003c/a\u003e\n\n## LICENSE\n\n[MIT](./LICENSE)\n","funding_links":["https://www.buymeacoffee.com/koki.sato"],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoki-develop%2Fgat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoki-develop%2Fgat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoki-develop%2Fgat/lists"}