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) {