From 4909a20f2e31361f49557c2e597f6f816e3674f3 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 30 Oct 2023 17:28:10 +0800 Subject: feat: force nowrap if no tty/terminal (#182) --- README.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 19209e9..742fe58 100644 --- a/README.md +++ b/README.md @@ -286,8 +286,6 @@ Options: -V, --version Print version ``` -Examples: - ```sh aichat -s # Start REPL with a new temp session aichat -s temp # Use temp session @@ -295,6 +293,13 @@ aichat -r shell -s # Create a session with a role aichat -m openai:gpt-4-32k -s # Create a session with a model aichat -s sh unzip a file # Run session in command mode +aichat -r shell unzip a file # Use role in command mode +aichat -s shell unzip a file # Use session in command mode + +cat config.json | aichat convert to yaml # Read stdin +cat config.json | aichat -r convert:yaml # Read stdin with a role +cat config.json | aichat -s i18n # Read stdin with a session + aichat --list-models # List all available models aichat --list-roles # List all available roles aichat --list-sessions # List all available models @@ -303,13 +308,7 @@ aichat --info # system-wide information aichat -s temp --info # Show session details aichat -r shell --info # Show role info - -aichat -r shell unzip a file # Use role in command mode -aichat -s shell unzip a file # Use session in command mode - -cat config.json | aichat convert to yaml # Read stdin -cat config.json | aichat -r convert:yaml # Read stdin with a role -cat config.json | aichat -s i18n # Read stdin with a session +$(echo "$data" | aichat -S -H to json) # Use aichat in a script ``` ## License -- cgit v1.2.3