Skip to content

Commit 3749995

Browse files
committed
chore: add json tags to the options struct for consistent unmarshaling
Signed-off-by: Donnie Adams <[email protected]>
1 parent 7ddbbab commit 3749995

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)