cmd: minor changes

This commit is contained in:
David Allen 2025-01-07 12:14:53 -07:00
parent 6bf75e27ce
commit 4f836630b0
Signed by: towk
GPG key ID: 793B2924A49B3A3F
2 changed files with 4 additions and 3 deletions

View file

@ -81,6 +81,7 @@ var generateCmd = &cobra.Command{
}
// set the client options
// params.ClientOpts = append(params.ClientOpts, client.WithHost(remoteHost))
if conf.AccessToken != "" {
params.ClientOpts = append(params.ClientOpts, client.WithAccessToken(conf.AccessToken))
}
@ -89,7 +90,7 @@ var generateCmd = &cobra.Command{
}
// run generator.Generate() with just plugin path and templates provided
outputBytes, err := generator.Generate(pluginPath, params)
outputBytes, err := generator.Generate(&conf, pluginPath, params)
if err != nil {
log.Error().Err(err).Msg("failed to generate files")
}