Skip to content

Commit

Permalink
adds JobWithForceApi
Browse files Browse the repository at this point in the history
  • Loading branch information
sBurmester committed Aug 12, 2024
1 parent 046660f commit 75a380f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions force/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 75a380f

Please sign in to comment.