Skip to content

Commit

Permalink
feat: ✨ update CLI options for suffix and rewrite behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 19, 2024
1 parent 936f563 commit 07f49d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/src/content/docs/reference/cli/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ the GenAIScript and the LLM output is saved to a <filename>.genai.md (or custom
suffix).
Options:
-s, --suffix <string> suffix for converted files (default:
".genai.md")
-rw, --rewrite rewrite input file with output
-s, --suffix <string> suffix for converted files
-rw, --rewrite rewrite input file with output (overrides
suffix)
-cw, --cancel-word <string> cancel word which allows the LLM to notify
to ignore output
-ef, --excluded-files <string...> excluded files
Expand Down
8 changes: 2 additions & 6 deletions packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <filename>.genai.md (or custom suffix)."
)
.arguments("<script> [files...]")
.option(
"-s, --suffix <string>",
"suffix for converted files",
GENAI_MD_EXT
)
.option("-rw, --rewrite", "rewrite input file with output")
.option("-s, --suffix <string>", "suffix for converted files")
.option("-rw, --rewrite", "rewrite input file with output (overrides suffix)")
.option(
"-cw, --cancel-word <string>",
"cancel word which allows the LLM to notify to ignore output"
Expand Down

0 comments on commit 07f49d1

Please sign in to comment.