From 07f49d15cbf2feed261b3476aa8aaaf8e90689ba Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Thu, 19 Dec 2024 03:55:42 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20update=20CLI=20options=20fo?= =?UTF-8?q?r=20suffix=20and=20rewrite=20behavior?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/content/docs/reference/cli/commands.md | 6 +++--- packages/cli/src/cli.ts | 8 ++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/docs/src/content/docs/reference/cli/commands.md b/docs/src/content/docs/reference/cli/commands.md index 9971f7cf6..120ff8111 100644 --- a/docs/src/content/docs/reference/cli/commands.md +++ b/docs/src/content/docs/reference/cli/commands.md @@ -139,9 +139,9 @@ the GenAIScript and the LLM output is saved to a .genai.md (or custom suffix). Options: - -s, --suffix suffix for converted files (default: - ".genai.md") - -rw, --rewrite rewrite input file with output + -s, --suffix suffix for converted files + -rw, --rewrite rewrite input file with output (overrides + suffix) -cw, --cancel-word cancel word which allows the LLM to notify to ignore output -ef, --excluded-files excluded files diff --git a/packages/cli/src/cli.ts b/packages/cli/src/cli.ts index a74de5c0f..67c090a95 100644 --- a/packages/cli/src/cli.ts +++ b/packages/cli/src/cli.ts @@ -253,12 +253,8 @@ export async function cli() { "Converts file through a GenAIScript. Each file is processed separately through the GenAIScript and the LLM output is saved to a .genai.md (or custom suffix)." ) .arguments("