Skip to content

Commit 258b1ac

Browse files
committed
use apiClient constructor in search_jobs
1 parent 24f6df9 commit 258b1ac

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

cmd/src/search_jobs.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,7 @@ func parseColumns(columnsFlag string) []string {
155155

156156
// createSearchJobsClient creates a reusable API client for search jobs commands
157157
func createSearchJobsClient(out *flag.FlagSet, apiFlags *api.Flags) api.Client {
158-
return api.NewClient(api.ClientOpts{
159-
EndpointURL: cfg.endpointURL,
160-
AccessToken: cfg.accessToken,
161-
Out: out.Output(),
162-
Flags: apiFlags,
163-
})
158+
return cfg.apiClient(apiFlags, out.Output())
164159
}
165160

166161
// parseSearchJobsArgs parses command arguments with the provided flag set

0 commit comments

Comments
 (0)