ccat

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2015 License: MIT Imports: 10 Imported by: 0

README

ccat

ccat is the colorizing cat. It works similar to cat but displays content with syntax highlighting.

Supported Languages

  • JavaScript
  • Java
  • Ruby
  • Python
  • Go
  • C

Installation

OSX
$ brew tap jingweno/ccat
$ brew install ccat

Reference: jingweno/homebrew-ccat

Arch Linux
$ pacaur -S ccat
$ pacaur -S ccat-git

The ccat package will reflect the current release snapshot, while the ccat-git will be based on the current source available in the master branch of the git repo. You can use any AUR helper in place of pacaur AUR Helpers

From source

Prerequisites:

$ go get -u github.com/jingweno/ccat

Examples

$ ccat FILE1 FILE2 ...
$ ccat # read from standard input

Demo

demo

Roadmap

  • nicer default color scheme
  • customizable color scheme
  • ?

FAQ

Why not pygments?

You could use pygments to achieve pretty much the same thing:

$ alias ccat="pygmentize -g"
$ ccat FILE1

ccat is a *nix alternative to pygments: no interpreter, one binary, native speed, POSIX standard etc..

License

MIT

Credits

Thanks to Sourcegraph who built this awesome syntax-highlighting package.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/code.google.com/p/rog-go/parallel
The parallel package provides a way of running functions concurrently while limiting the maximum number running at once.
The parallel package provides a way of running functions concurrently while limiting the maximum number running at once.
_workspace/src/github.com/codegangsta/cli
Package cli provides a minimal framework for creating and organizing command line Go applications.
Package cli provides a minimal framework for creating and organizing command line Go applications.
_workspace/src/github.com/gogo/protobuf/proto
Package proto converts data structures to and from the wire format of protocol buffers.
Package proto converts data structures to and from the wire format of protocol buffers.
_workspace/src/github.com/golang/protobuf/proto
Package proto converts data structures to and from the wire format of protocol buffers.
Package proto converts data structures to and from the wire format of protocol buffers.
_workspace/src/github.com/google/go-querystring/query
Package query implements encoding of structs into URL query parameters.
Package query implements encoding of structs into URL query parameters.
_workspace/src/github.com/gorilla/context
Package context stores values shared during a request lifetime.
Package context stores values shared during a request lifetime.
_workspace/src/github.com/kr/fs
Package fs provides filesystem-related functions.
Package fs provides filesystem-related functions.
_workspace/src/github.com/smartystreets/mafsa
Package mafsa implements Minimal Acyclic Finite State Automata (MA-FSA) in a space-optimized way as described by Dacuik, Mihov, Watson, and Watson in their paper, "Incremental Construction of Minimal Acyclic Finite-State Automata" (2000).
Package mafsa implements Minimal Acyclic Finite State Automata (MA-FSA) in a space-optimized way as described by Dacuik, Mihov, Watson, and Watson in their paper, "Incremental Construction of Minimal Acyclic Finite-State Automata" (2000).
_workspace/src/github.com/sourcegraph/go-github/github
Package github provides a client for using the GitHub API.
Package github provides a client for using the GitHub API.
_workspace/src/github.com/sourcegraph/mux
Package gorilla/mux implements a request router and dispatcher.
Package gorilla/mux implements a request router and dispatcher.
_workspace/src/github.com/sourcegraph/syntaxhighlight
Package syntaxhighlight provides syntax highlighting for code.
Package syntaxhighlight provides syntax highlighting for code.
_workspace/src/golang.org/x/tools/godoc/vfs
Package vfs defines types for abstract file system access and provides an implementation accessing the file system of the underlying OS.
Package vfs defines types for abstract file system access and provides an implementation accessing the file system of the underlying OS.
_workspace/src/golang.org/x/tools/godoc/vfs/gatefs
Package gatefs provides an implementation of the FileSystem interface that wraps another FileSystem and limits its concurrency.
Package gatefs provides an implementation of the FileSystem interface that wraps another FileSystem and limits its concurrency.
_workspace/src/golang.org/x/tools/godoc/vfs/httpfs
Package httpfs implements http.FileSystem using a godoc vfs.FileSystem.
Package httpfs implements http.FileSystem using a godoc vfs.FileSystem.
_workspace/src/golang.org/x/tools/godoc/vfs/mapfs
Package mapfs file provides an implementation of the FileSystem interface based on the contents of a map[string]string.
Package mapfs file provides an implementation of the FileSystem interface based on the contents of a map[string]string.
_workspace/src/golang.org/x/tools/godoc/vfs/zipfs
Package zipfs file provides an implementation of the FileSystem interface based on the contents of a .zip file.
Package zipfs file provides an implementation of the FileSystem interface based on the contents of a .zip file.
_workspace/src/sourcegraph.com/sourcegraph/go-diff/diff
Package diff is a generated protocol buffer package.
Package diff is a generated protocol buffer package.
_workspace/src/sourcegraph.com/sourcegraph/go-nnz/nnz
Package nnz defines variants of primitive types where the zero value represents null when (de)serializing with encoding/json and database/sql.
Package nnz defines variants of primitive types where the zero value represents null when (de)serializing with encoding/json and database/sql.
_workspace/src/sourcegraph.com/sourcegraph/go-vcs/vcs
Package vcs provides an interface for reading and manipulating repositories in version control systems.
Package vcs provides an interface for reading and manipulating repositories in version control systems.
_workspace/src/sourcegraph.com/sourcegraph/rwvfs
Package rwvfs augments vfs to support write operations.
Package rwvfs augments vfs to support write operations.
_workspace/src/sourcegraph.com/sourcegraph/srclib/ann
Package ann is a generated protocol buffer package.
Package ann is a generated protocol buffer package.
_workspace/src/sourcegraph.com/sourcegraph/srclib/dep
Package dep defines an interface for listing raw dependencies and resolving them, and registering handlers to perform these tasks.
Package dep defines an interface for listing raw dependencies and resolving them, and registering handlers to perform these tasks.
_workspace/src/sourcegraph.com/sourcegraph/srclib/graph
Package graph is a generated protocol buffer package.
Package graph is a generated protocol buffer package.
TODO(sqs): remove this file
_workspace/src/sourcegraph.com/sourcegraph/srclib/store
Package store handles srclib data access, querying, and storage.
Package store handles srclib data access, querying, and storage.
_workspace/src/sourcegraph.com/sourcegraph/srclib/unit
Package unit provides a source unit abstraction over distribution packages in various languages.
Package unit provides a source unit abstraction over distribution packages in various languages.
_workspace/src/sourcegraph.com/sourcegraph/vcsstore/vcsclient
Package vcsclient is a generated protocol buffer package.
Package vcsclient is a generated protocol buffer package.
_workspace/src/sourcegraph.com/sqs/pbtypes
Package pbtypes contains protocol buffer types (Timestamp, Void, etc.) and related helpers.
Package pbtypes contains protocol buffer types (Timestamp, Void, etc.) and related helpers.

Jump to

Keyboard shortcuts

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