Cascade.Checks (Cascade v0.3.0)

View Source

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

check_directory_existence!(path)

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

Ensure that the given directory exists

check_module_name_availability!(name)

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

Ensure that the given module name is available.

check_module_name_validity!(name)

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

Ensure that the given name is a valid module name.