Skip to content

Commit 9cd9367

Browse files
committed
Use options back to reduce PR changes
1 parent f03fa6e commit 9cd9367

File tree

4 files changed

+124
-124
lines changed

4 files changed

+124
-124
lines changed

cmd/envbuilder/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ import (
2323
)
2424

2525
func main() {
26-
config := envbuilder.Config{}
26+
options := envbuilder.Options{}
2727
cmd := serpent.Command{
2828
Use: "envbuilder",
29-
Options: config.Options(),
29+
Options: options.CLI(),
3030
// Hide usage because we don't want to show the
3131
// "envbuilder [command] --help" output on error.
3232
Hidden: true,
@@ -47,7 +47,7 @@ func main() {
4747
client.SDK.HTTPClient = &http.Client{
4848
Transport: &http.Transport{
4949
TLSClientConfig: &tls.Config{
50-
InsecureSkipVerify: config.Insecure,
50+
InsecureSkipVerify: options.Insecure,
5151
},
5252
},
5353
}
@@ -79,7 +79,7 @@ func main() {
7979
}
8080
}
8181

82-
err := envbuilder.Run(inv.Context(), &config, nil, logger)
82+
err := envbuilder.Run(inv.Context(), options, nil, logger)
8383
if err != nil {
8484
logger(codersdk.LogLevelError, "error: %s", err)
8585
}

0 commit comments

Comments
 (0)