Mix.Generator.overwrite-question-mark

You're seeing just the function overwrite-question-mark, go back to Mix.Generator module for more information.
Link to this function

overwrite?(path)

View Source (since 1.9.0)

Specs

overwrite?(Path.t()) :: boolean()

Prompts the user to overwrite the file if it exists.

Returns false if the file exists and the user forbade to override it. Returns true otherwise.

Link to this function

overwrite?(path, contents)

View Source (since 1.9.0)

Specs

overwrite?(Path.t(), iodata()) :: boolean()

Prompts the user to overwrite the file if it exists.

The contents are compared to avoid asking the user to override if the contents did not change. Returns false if the file exists and the content is the same or the user forbade to override it. Returns true otherwise.