Modules returns the lineage of modules that this context provisioned, with the most recent/current module being last in the list.
()
| 653 | // Modules returns the lineage of modules that this context provisioned, |
| 654 | // with the most recent/current module being last in the list. |
| 655 | func (ctx Context) Modules() []Module { |
| 656 | mods := make([]Module, len(ctx.ancestry)) |
| 657 | copy(mods, ctx.ancestry) |
| 658 | return mods |
| 659 | } |
| 660 | |
| 661 | // Module returns the current module, or the most recent one |
| 662 | // provisioned by the context. |
no outgoing calls
no test coverage detected