Skip to content

Commit 0c7bea6

Browse files
authored
Merge pull request #10 from thedadams/opts-json
chore: add json tags to the options struct for consistent unmarshaling
2 parents 7ddbbab + 3749995 commit 0c7bea6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exec.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import (
1111

1212
// Opts represents options for the gptscript tool or file.
1313
type Opts struct {
14-
DisableCache bool
15-
CacheDir string
16-
Quiet bool
17-
Chdir string
14+
DisableCache bool `json:"disableCache"`
15+
CacheDir string `json:"cacheDir"`
16+
Quiet bool `json:"quiet"`
17+
Chdir string `json:"chdir"`
1818
}
1919

2020
func (o Opts) toArgs() []string {

0 commit comments

Comments
 (0)