From 75a380f931287029c933a53199530880953cf101 Mon Sep 17 00:00:00 2001 From: sBurmester Date: Mon, 12 Aug 2024 08:05:34 +0200 Subject: [PATCH] adds JobWithForceApi --- force/job.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/force/job.go b/force/job.go index 28c9a64..791bcad 100644 --- a/force/job.go +++ b/force/job.go @@ -49,6 +49,13 @@ func JobWithJobInfo(info *JobInfo) OptionsFunc { } } +// JobWithForceApi adds a ForceApiClient to the Job +func JobWithForceApi(api ForceApi) OptionsFunc { + return func(job *Job) { + job.forceApi = api + } +} + // JobWithApiVersion set the ApiVersion of a Job func JobWithApiVersion(apiVersion string) OptionsFunc { return func(job *Job) {