How can I see files that a phx.gen.context will create without creating them?

Is there some preview mode of phx.gen.context when I will see what files and where will be created before I actually do that?

Something like $ mix phx.gen.context.preview Cars Car cars model:string price:integer ?

Not as far as I know, Personally I’d commit my current changes to git, see what it generates then stash and go again if need be.

3 Likes

Exactly, that’s what I do. Or revert the changes if I don’t like them and redo it again until I get what I want

1 Like

I use a dummy project, where I run commands before doing in the real project. Thus I know what will be generated.

1 Like

Ahh, me too :smiley:. I use both approaches

1 Like