@@ -226,7 +226,7 @@ func (c *Cli) generateCode(cl client.Client, lang *string, replace *bool, codePa
226226 return err
227227 }
228228
229- output , err := c .process (cl , client .ModeCode , * lang , * replace , codePath , nil , nil , model , source )
229+ output , err := c .process (cl , client .ModeCode , * lang , * replace , codePath , nil , nil , & file , model , source )
230230 if err != nil {
231231 if ! c .isFailFast (failFast ) {
232232 c .logger .Errorf ("Failed to process file %s %v" , file , err )
@@ -271,7 +271,7 @@ func (c *Cli) generateDocumentation(cl client.Client, lang *string, replace *boo
271271 return err
272272 }
273273
274- output , err := c .process (cl , client .ModeDocument , * lang , * replace , codePath , visibility , minimalLinesLength , nil , source )
274+ output , err := c .process (cl , client .ModeDocument , * lang , * replace , codePath , visibility , minimalLinesLength , nil , nil , source )
275275 if err != nil {
276276 if ! c .isFailFast (failFast ) {
277277 c .logger .Errorf ("Failed to process file %s %v" , file , err )
@@ -316,7 +316,7 @@ func (c *Cli) fixSyntax(cl client.Client, lang *string, failFast *bool, files []
316316 return nil
317317 }
318318
319- output , err := c .process (cl , client .ModeFixSyntax , * lang , false , nil , nil , nil , nil , source )
319+ output , err := c .process (cl , client .ModeFixSyntax , * lang , false , nil , nil , nil , nil , nil , source )
320320 if err != nil {
321321 if ! c .isFailFast (failFast ) {
322322 c .logger .Errorf ("Failed to process file %s %v" , file , err )
@@ -336,7 +336,7 @@ func (c *Cli) fixSyntax(cl client.Client, lang *string, failFast *bool, files []
336336 })
337337}
338338
339- func (c * Cli ) process (cl client.Client , mode string , lang string , replace bool , codePath * string , visibility * string , minimalLinesLength * int , model * string , source string ) (* string , error ) {
339+ func (c * Cli ) process (cl client.Client , mode string , lang string , replace bool , codePath * string , visibility * string , minimalLinesLength * int , path * string , model * string , source string ) (* string , error ) {
340340 ctx := context .Background ()
341341
342342 modify := client .ModifyNone
@@ -360,6 +360,7 @@ func (c *Cli) process(cl client.Client, mode string, lang string, replace bool,
360360 Input : client.Input {
361361 Source : source ,
362362 },
363+ Path : path ,
363364 Options : & client.Options {
364365 Modify : & modify ,
365366 CodePath : codePath ,
0 commit comments