Skip to content

Commit

Permalink
✨ feat: add "eval" alias for "test" command
Browse files Browse the repository at this point in the history
Updated CLI to support "eval" as alias for the "test" command.
  • Loading branch information
pelikhan committed Feb 10, 2025
1 parent 74c558b commit 61d47e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/content/docs/reference/cli/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Options:
## `test`

```
Usage: genaiscript test [options] [command]
Usage: genaiscript test|eval [options] [command]
Options:
-h, --help display help for command
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export async function cli() {
.action(runScriptWithExitCode) // Action to execute the script with exit code

// Define 'test' command group for running tests
const test = program.command("test")
const test = program.command("test").alias("eval")

const testRun = test
.command("run", { isDefault: true })
Expand Down

0 comments on commit 61d47e8

Please sign in to comment.