apple / pkl-go

Pkl bindings for the Go programming language
https://pkl-lang.org/go/current/index.html
Apache License 2.0
259 stars 24 forks source link

Refactor flag parsing and setting loading in pkl-gen-go #53

Closed kasugamirai closed 3 months ago

kasugamirai commented 5 months ago

The refactor introduces a new structure 'CLIFlags' to hold command line interface flags. It also implements two new functions 'ParseFlags' and 'LoadSettings' to improve the readability of the code and make the responsibilities of the functions more clear.