We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baf2aef commit e206bdaCopy full SHA for e206bda
1 file changed
documentation/writing-generators.md
@@ -23,12 +23,12 @@ defmodule Mix.Tasks.YourLib.Gen.YourThing do
23
def igniter(igniter) do
24
[module_name | _] = igniter.args.argv
25
26
- module_name = Igniter.Code.Module.parse(module_name)
27
- path = Igniter.Code.Module.proper_location(module_name)
+ module_name = Igniter.Project.Module.parse(module_name)
+ path = Igniter.Project.Module.proper_location(igniter, module_name)
28
app_name = Igniter.Project.Application.app_name(igniter)
29
30
igniter
31
- |> Igniter.create_new_elixir_file(path, """
+ |> Igniter.create_new_file(path, """
32
defmodule #{inspect(module_name)} do
33
use YourLib.Thing
34
0 commit comments