Skip to content

Commit

Permalink
Add a command line option to set the cache dir (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriehSchneier authored Aug 1, 2024
1 parent 6cbdd24 commit 682c566
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/sysl/cmd_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ func (r *cmdRunner) Configure(app *kingpin.Application) error {
"When parsing imports don't error when a file is imported from multiple branches or into multiple app-names.",
).BoolVar(&r.parseSettings.NoDifferentVersionCheck)

app.Flag("cache-dir",
"Where to cache the repos for imported files",
).StringVar(&remotefs.CacheDir)

sort.Slice(commands, func(i, j int) bool {
return strings.Compare(commands[i].Name(), commands[j].Name()) < 0
})
Expand Down

0 comments on commit 682c566

Please sign in to comment.