View Source Cascade.Checks (Cascade v0.2.0)

Useful generic checks for templates.

Summary

Functions

Ensure that the given directory exists

Ensure that the given module name is available.

Ensure that the given name is a valid module name.

Functions

Link to this function

check_directory_existence!(path)

View Source
@spec check_directory_existence!(name :: String.t()) :: :ok

Ensure that the given directory exists

Link to this function

check_module_name_availability!(name)

View Source
@spec check_module_name_availability!(name :: String.t()) :: :ok

Ensure that the given module name is available.

Link to this function

check_module_name_validity!(name)

View Source
@spec check_module_name_validity!(name :: String.t()) :: :ok

Ensure that the given name is a valid module name.