@@ -40,6 +40,7 @@ type configOptions struct {
4040 resolveImageDigests bool
4141 noInterpolate bool
4242 noNormalize bool
43+ noResolvePath bool
4344 services bool
4445 volumes bool
4546 profiles bool
@@ -51,14 +52,14 @@ type configOptions struct {
5152func (o * configOptions ) ToProject (services []string ) (* types.Project , error ) {
5253 return o .ProjectOptions .ToProject (services ,
5354 cli .WithInterpolation (! o .noInterpolate ),
54- cli .WithResolvedPaths (true ),
55+ cli .WithResolvedPaths (! o . noResolvePath ),
5556 cli .WithNormalization (! o .noNormalize ),
5657 cli .WithConsistency (! o .noConsistency ),
5758 cli .WithProfiles (o .Profiles ),
5859 cli .WithDiscardEnvFile )
5960}
6061
61- func convertCommand (p * ProjectOptions , streams api.Streams , backend api.Service ) * cobra.Command {
62+ func configCommand (p * ProjectOptions , streams api.Streams , backend api.Service ) * cobra.Command {
6263 opts := configOptions {
6364 ProjectOptions : p ,
6465 }
@@ -106,6 +107,7 @@ func convertCommand(p *ProjectOptions, streams api.Streams, backend api.Service)
106107 flags .BoolVarP (& opts .quiet , "quiet" , "q" , false , "Only validate the configuration, don't print anything." )
107108 flags .BoolVar (& opts .noInterpolate , "no-interpolate" , false , "Don't interpolate environment variables." )
108109 flags .BoolVar (& opts .noNormalize , "no-normalize" , false , "Don't normalize compose model." )
110+ flags .BoolVar (& opts .noResolvePath , "no-path-resolution" , false , "Don't resolve file paths." )
109111 flags .BoolVar (& opts .noConsistency , "no-consistency" , false , "Don't check model consistency - warning: may produce invalid Compose output" )
110112
111113 flags .BoolVar (& opts .services , "services" , false , "Print the service names, one per line." )
0 commit comments