Skip to content

Commit

Permalink
document default files
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jun 4, 2024
1 parent 2b839ad commit 32ebe75
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/src/content/docs/getting-started/running-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ To run the script on the root folder, right click under the files.

:::

### Default files

You can specify default file or files to run the script on.
When you run the script from the script file itself, or with the command line without file arguments,
the default files will be used.

```js
script({
files: "path/to/files*.md",
})
...
```

## Command Line

Use the [run](/genaiscript/reference/cli/run) command to execute a script from the command line.
Expand Down

0 comments on commit 32ebe75

Please sign in to comment.