Argument parsing, validation, and file helpers shared by the BlogEngine generators.
Summary
Functions
Returns whether ast contains an alias statement anywhere.
Creates each generated file that is missing and leaves identical files untouched.
Parses generator flags against a task's Igniter.Mix.Task.Info schema.
Keeps generated paths where the generator wrote them when Igniter moves files.
Returns the current content Igniter holds for path, or nil when it holds none.
Raises unless every listed option holds an Elixir module name.
Functions
Returns whether ast contains an alias statement anywhere.
Creates each generated file that is missing and leaves identical files untouched.
@spec parse_argv([String.t()], Igniter.Mix.Task.Info.t(), (keyword() -> any())) :: Igniter.Mix.Task.Args.t()
Parses generator flags against a task's Igniter.Mix.Task.Info schema.
Applies the task's option defaults, hands the result to validate!, and
raises on positional arguments or unknown options.
Keeps generated paths where the generator wrote them when Igniter moves files.
Returns the current content Igniter holds for path, or nil when it holds none.
Raises unless every listed option holds an Elixir module name.