tracex v0.1.0 Tracex.Project View Source
Wrapper for project metadata
Keeps information about project's source files and defined modules. Project modules can be tagged or have extra attributes assigned.
Link to this section Summary
Functions
Add an extra attribute to a module for future inspection
Add module to the project
Builds project struct from mix config
Returns project module
Returns the list of modules tracked for project, optionally filtered
Tags a module with tag
for future filtering
Link to this section Types
Link to this type
t()
View Sourcet() :: %Tracex.Project{ modules: %{optional(atom()) => project_module()}, root_path: binary(), source_files: [binary()] }
Link to this section Functions
Add an extra attribute to a module for future inspection
Add module to the project
Builds project struct from mix config
Link to this function
get_module(project, module)
View Sourceget_module(t(), atom()) :: project_module()
Returns project module
Link to this function
get_modules(project, filters \\ [])
View Sourceget_modules(t(), [atom()]) :: [project_module()]
Returns the list of modules tracked for project, optionally filtered
Options:
tags
- list of tags to filter modules by (at least one tag must match)
Tags a module with tag
for future filtering