MCPcopy Create free account
hub / github.com/compose-spec/compose-go / clone

Method clone

loader/loader.go:183–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181}
182
183func (o *Options) clone() *Options {
184 return &Options{
185 SkipValidation: o.SkipValidation,
186 SkipInterpolation: o.SkipInterpolation,
187 SkipNormalization: o.SkipNormalization,
188 ResolvePaths: o.ResolvePaths,
189 ConvertWindowsPaths: o.ConvertWindowsPaths,
190 SkipConsistencyCheck: o.SkipConsistencyCheck,
191 SkipExtends: o.SkipExtends,
192 SkipInclude: o.SkipInclude,
193 Interpolate: o.Interpolate,
194 discardEnvFiles: o.discardEnvFiles,
195 projectName: o.projectName,
196 projectNameImperativelySet: o.projectNameImperativelySet,
197 Profiles: o.Profiles,
198 SelectedServices: o.SelectedServices,
199 PruneUnnecessaryResources: o.PruneUnnecessaryResources,
200 ResourceLoaders: o.ResourceLoaders,
201 KnownExtensions: o.KnownExtensions,
202 Listeners: o.Listeners,
203 }
204}
205
206func (o *Options) SetProjectName(name string, imperativelySet bool) {
207 o.projectName = name

Callers 2

ApplyIncludeFunction · 0.80
getExtendsBaseFromFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected