{"id":15099229,"url":"https://github.com/batmac/ccat","last_synced_at":"2025-06-24T14:38:41.053Z","repository":{"id":37101117,"uuid":"498383163","full_name":"batmac/ccat","owner":"batmac","description":"cat on steroids","archived":false,"fork":false,"pushed_at":"2025-06-19T03:00:09.000Z","size":18768,"stargazers_count":15,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-22T04:45:07.057Z","etag":null,"topics":["base64","cli","command-line","command-line-tool","golang","golang-application","google-cloud-storage","json","libcurl","lzfse-decompressor","lzma","lzma2","plist-extract","s2","s3","syntax-highlighting","sysadmin-tool","yaml","zstd"],"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/batmac.png","metadata":{"files":{"readme":"README.header.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-31T15:01:13.000Z","updated_at":"2025-06-19T02:59:45.000Z","dependencies_parsed_at":"2024-05-20T21:58:16.455Z","dependency_job_id":"bed8a5d4-e699-4bfb-bae1-7ab60e278578","html_url":"https://github.com/batmac/ccat","commit_stats":{"total_commits":1350,"total_committers":11,"mean_commits":"122.72727272727273","dds":0.4814814814814815,"last_synced_commit":"2bde12b21da8ae4397672c203aec98f66e098a5c"},"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"purl":"pkg:github/batmac/ccat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batmac%2Fccat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batmac%2Fccat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batmac%2Fccat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batmac%2Fccat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/batmac","download_url":"https://codeload.github.com/batmac/ccat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batmac%2Fccat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261695232,"owners_count":23195708,"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":["base64","cli","command-line","command-line-tool","golang","golang-application","google-cloud-storage","json","libcurl","lzfse-decompressor","lzma","lzma2","plist-extract","s2","s3","syntax-highlighting","sysadmin-tool","yaml","zstd"],"created_at":"2024-09-25T17:08:06.284Z","updated_at":"2025-06-24T14:38:41.025Z","avatar_url":"https://github.com/batmac.png","language":"Go","readme":"# ccat\n\n[![Built with Mage](https://magefile.org/badge.svg)](https://magefile.org)\n[![Go](https://github.com/batmac/ccat/actions/workflows/go.yml/badge.svg)](https://github.com/batmac/ccat/actions/workflows/go.yml)\n![GitHub](https://img.shields.io/github/license/batmac/ccat)\n[![Go Report Card](https://goreportcard.com/badge/github.com/batmac/ccat)](https://goreportcard.com/report/github.com/batmac/ccat)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fbatmac%2Fccat.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fbatmac%2Fccat?ref=badge_shield)\n[![codecov](https://codecov.io/gh/batmac/ccat/branch/main/graph/badge.svg?token=PCD6DM6S75)](https://codecov.io/gh/batmac/ccat)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/batmac/ccat/main.svg)](https://results.pre-commit.ci/latest/github/batmac/ccat/main)\n\ncat on steroids.\nLeveraging great go modules to ease my CLI life.\n\n## Install\n\n### Homebrew\n\n`brew install batmac/tap/ccatos`\n\n### Manually\n\nGet the latest release from \u003chttps://github.com/batmac/ccat/releases/latest\u003e\n\n### Build from source with Mage\n\nRun the zero-install code or use your mage binary:\n\n```shell\n$ git clone https://github.com/batmac/ccat\n$ go run magefiles/mage.go -l # or 'mage -l'\nTargets:\n  buildDefault\n  buildDefaultAndTest*    buildDefault,test\n  buildFull               tags: libcurl,crappy,plugins\n  buildMinimal            tags: nohl,fileonly\n  clean\n  install                 put ccat to $GOPATH/bin/ccat\n  installDeps             go mod download\n  test                    all\n  testCompressionGo\n  testGo                  go test ./...\n  updateREADME\n  verifyDeps              go mod verify\n\n* default target\n$ go run magefiles/mage.go # or 'mage'\n```\n\n## Update\n\n- You can update to the latest github release with `ccat --selfupdate`.\n- You can check against your current installed version with `ccat --check`.\n\n## Build tags\n\navailable build tags:\n\n- `libcurl`: build with the libcurl opener.\n- `plugins`: build with the yaegi plugins engine.\n- `fileonly`: build with the local file opener only.\n- `nohl`: build without the syntax-highlighter.\n- `crappy`: build with some crappy (but useful) openers/mutators.\n- `keystore`: build with the OS keyring support (Mac,Linux,Windows).\n\n## Examples\n\n```shell\n$ ccat -m \"x:kubectl get all\" -i -w -t ready,Running --bg\nNAME           READY   STATUS    RESTARTS   AGE\npod/busybox3   1/1     Running   1          17m\n\nNAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE\nservice/kubernetes   ClusterIP   10.96.0.1    \u003cnone\u003e        443/TCP   21d\n```\n\n( \"READY and \"Running\" have different background colors )\n\n```shell\n$ echo Hello: | ccat -m y2j,j2y,base64,hexdump\n00000000  53 47 56 73 62 47 38 36  49 47 35 31 62 47 77 4b  |SGVsbG86IG51bGwK|\n```\n\n```shell\n$ ccat -m zstd,base64 LICENSE\nKLUv/WQwA+UUAGKyjCQQi1gA+Mu1uPH4trE1CdEhIptwP1oghhOOOP5rTRkCAKACAAdroEXGmA2Uz10inntYY97kIsI70zHae3CBb+DnAi4lAWNzxHPSRXalSceYEc4rc2FxPri8gX/QzYX9sT/32JzZHMbds2JzJmwIlmDMlYRjz/LGa8+BueftcBkb80Dn00G42FDA5RFeRujMBVvNmX8e5sjP1xLa4ftzH5ivJRriudg89+A789ibhIq4UDyyZ7G4GZni7BE2l7K96ZqlNKZ73IHNx5wltsQbeNlcc+bhPNOmS7jnE77PxeGI55jFszx3hWnuUSTcivBStqhQaFeY5xDeeOwNfGM+FiNjfC6gMx3jCoB0lwzgTGNcAoyKS/cWGWM2UL45c60B6ko+0c6WZuyo8Cl6249qdXyaqIRxSxnqfO0rw3XQV2mudYDt7dyRvdAhthvuNN3Hzc9QXbj4N6oSbktVj4U7cqWG33ycO0JVyW/+cW3JhdY0VXzqEkSWXpkcFb5Sc+VoKuOOrki4J0clqZErk0dHN3JFqbj6zQu/SrkjPUFsR9UE2b5ib2eoqYwr9VxdKXfDX6V822uiNRIAkACvUg44rlM/bm9nmm2NVNCNHtVMG7oY00eWvlK0IT8uPm4p/3HXRHKh00Ns26bZcW8vpqrkE0t/85UKoagE/XFfK/W4EtVsKQX5xFGpKh337W2MO0JVxVr2ZkuX14w7S+jhBgYFBheAAp4lSFMTyV3WqthWqJ9PlwgmAGYTiQo1Zi5cSUcnOBoEX3ev5YUMcVnvUrgx5HaCOLWhPcddUjOGZmX2yZFNAyB+ELmdEtsBPE17UsXU4fTV1jdNHpPl8KiAkC34tsZqWhxaa3RlIgn25jJkslDF+VBC8cW5mikplMUF0g==\n```\n\n## Docker image\n\nmulti-arch container images with tags `libcurl,crappy,plugins` are automatically built by [Github Actions](https://github.com/batmac/ccat/actions/workflows/docker-images.yml) and made available on [Dockerhub](https://hub.docker.com/r/batmac/ccat) and [Github Packages](https://github.com/batmac/ccat/pkgs/container/ccat). \u003cbr/\u003e\nfor instance:\n\n```shell\n$ docker run --rm ghcr.io/batmac/ccat:latest -h\n...\n```\n\nor\n\n```shell\n$ kubectl run -i --tty ccat --image=batmac/ccat:latest -- /bin/sh\n...\n```\n\n## help\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatmac%2Fccat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbatmac%2Fccat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatmac%2Fccat/lists"}