gat

command module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 1 Imported by: 0

README

gat

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

cat alternative written in Go.

demo

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

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.

LICENSE

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL