https://github.com/koki-develop/gat Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} koki-develop / gat Public * Notifications * Fork 0 * Star 75 cat alternative written in Go. License MIT license 75 stars 0 forks Star Notifications * Code * Issues 2 * Pull requests 1 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights koki-develop/gat This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 2 branches 9 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/k] Use Git or checkout with SVN using the web URL. [gh repo clone koki-d] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @koki-develop koki-develop Merge pull request #17 from koki-develop/pretty-go ... d8a113d Mar 31, 2023 Merge pull request #17 from koki-develop/pretty-go d8a113d Git stats * 113 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github/workflows add gess.tape to workflow March 25, 2023 21:43 cmd mark flags mutally exclusive: list-langs, list-formats, list-themes March 25, 2023 21:49 docs [create-pull-request] automated change March 25, 2023 12:45 pkg add go prettier March 31, 2023 21:52 tapes update readme March 25, 2023 21:42 .gitignore add dist to gitignore March 11, 2023 17:17 .goreleaser.yaml update goreleaser.yaml March 11, 2023 17:22 LICENSE create LICENSE March 11, 2023 17:05 README.md update readme March 25, 2023 21:56 go.mod add yaml prettier March 31, 2023 21:48 go.sum add yaml prettier March 31, 2023 21:48 main.go remove comments March 11, 2023 15:18 renovate.json use shared config March 20, 2023 21:56 View code [ ] gat Installation Homebrew go install Releases Usage -l, --lang -f, --format -t, --theme -p, --pretty -c, --force-color LICENSE README.md gat GitHub release (latest by date) GitHub Workflow Status Maintainability Go Report Card LICENSE cat alternative written in Go. demo * Installation * Usage * LICENSE Installation Homebrew $ 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: -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. [gess] 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 } LICENSE MIT About cat alternative written in Go. Topics cli golang terminal Resources Readme License MIT license Stars 75 stars Watchers 1 watching Forks 0 forks Releases 9 v0.8.0 Latest Mar 31, 2023 + 8 releases Packages 0 No packages published Contributors 2 * @koki-develop koki-develop Koki Sato * @renovate[bot] renovate[bot] Languages * Go 100.0% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.