code: func (t *Tree) Modules() []*Module {
  	result := make([]*Module, len(t.config.Modules))
  	for i, m := range t.config.Modules {
  		result[i] = &Module{
  			Name:      m.Name,
  			Version:   m.Version,
  			Source:    m.Source,
  			Providers: m.Providers,
  		}
  	}
  
  	return result
  }
docs: // Modules returns the list of modules that this tree imports.
  //
  // This is only the imports of _this_ level of the tree. To retrieve the
  // full nested imports, you'll have to traverse the tree.