Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
batmac committed May 18, 2023
1 parent c29a410 commit 592ebbb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ $ kubectl run -i --tty ccat --image=batmac/ccat:latest -- /bin/sh
## help

```
version v1.10.0-53-g6464a75 [libcurl,crappy,plugins], commit 6464a756a304c74dd8f80b6abcca346e7d073ac1, built at 2023-04-09@05:25:00+0200 by Mage (go1.20.3 darwin/arm64)
version v1.11.0-21-g880d83a [libcurl,crappy,plugins], commit 880d83aa541d7ba6f7aa2b9f2b56f548c4d2c9f4, built at 2023-05-12@04:50:47+0200 by Mage (go1.20.4 darwin/arm64)
usage: ccat [options] [file ...]
-t, --tokens string comma-separated list of tokens
-i, --ignore-case tokens given with -t are case-insensitive
Expand Down Expand Up @@ -148,7 +148,7 @@ ccat <files>...
gemini: get URL via Gemini
http: get URL via HTTP(S)
curl: get URL via libcurl bindings
libcurl/7.86.0 SecureTransport (LibreSSL/3.3.6) zlib/1.2.11 nghttp2/1.47.0
libcurl/7.87.0 SecureTransport (LibreSSL/3.3.6) zlib/1.2.11 nghttp2/1.51.0
protocols: dict,file,ftp,ftps,gopher,gophers,http,https,imap,imaps,ldap,ldaps,mqtt,pop3,pop3s,rtsp,smb,smbs,smtp,smtps,telnet,tftp
mc: get a Minio-compatible object via mc:// (use ~/.mc/config.json or env for credentials)
tcp: get data from listening on tcp://[HOST]:<PORT>
Expand Down Expand Up @@ -224,7 +224,8 @@ ccat <files>...
easyseal: encrypt with Nacl EasySeal, key used is printed on stderr
external APIs:
chatgpt: ask OpenAI ChatGPT, X:<unlimited> max replied tokens, the optional second arg is the model (needs a valid key in $OPENAI_API_KEY)
claude: ask Anthropic Claude, X:<unlimited> max replied tokens, the optional second arg is the model (needs a valid key in $ANTHROPIC_API_KEY)
claude: ask Anthropic Claude, X:<unlimited> max replied tokens, optional second arg is the model, optional third arg is the preprompt (needs a valid key in $ANTHROPIC_API_KEY)
huggingface: ask HuggingFace for simple tasks, optional arg is the model (needs a valid key in $HUGGING_FACE_HUB_TOKEN, set HUGGING_FACE_ENDPOINT to use an Inference API endpoint)
translate: translate to X:en or $TARGET_LANGUAGE with google translate (needs a valid key in $GOOGLE_API_KEY)
wa: query wolfram alpha Short Answers API (APPID in $WA_APPID)
wasimple: query wolfram alpha Simple API (output is an image, APPID in $WA_APPID)
Expand All @@ -240,9 +241,10 @@ ccat <files>...
mutator aliases:
d: discard
ub64, unb64: unbase64
b64: base64
dumm, dum: dummy
l: limit
cgpt: chatgpt
dumm, dum: dummy
hf: huggingface
ub64, unb64: unbase64
```

0 comments on commit 592ebbb

Please sign in to comment.