Documentation
¶
Index ¶
- Variables
- type Dependency
- type File
- type Nuget
- func (m *Nuget) GetMetadata() plugin.Metadata
- func (m *Nuget) GetProjectManifestPath(path string) string
- func (m *Nuget) GetRootModule(path string) (*meta.Package, error)
- func (m *Nuget) GetVersion() (string, error)
- func (m *Nuget) HasModulesInstalled(path string) error
- func (m *Nuget) IsValid(path string) bool
- func (m *Nuget) ListModulesWithDeps(path string, globalSettingFile string) ([]meta.Package, error)
- func (m *Nuget) ListUsedModules(path string) ([]meta.Package, error)
- func (m *Nuget) SetRootModule(path string) error
- type PackageConfig
- type PackageDetail
- type Spec
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VersionCmd command = "dotnet --version" LocalPackageCacheCmd command = "dotnet nuget locals global-packages --list" RestorePackageCmd command = "dotnet restore" )
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
Dependency ...
type Nuget ¶
type Nuget struct {
// contains filtered or unexported fields
}
func (*Nuget) GetProjectManifestPath ¶
GetProjectManifestPath ...
func (*Nuget) GetRootModule ¶
GetRootModule...
func (*Nuget) HasModulesInstalled ¶
HasModulesInstalled ...
func (*Nuget) ListModulesWithDeps ¶
ListModulesWithDeps ...
func (*Nuget) ListUsedModules ¶
ListUsedModules ...
type PackageConfig ¶
type PackageConfig struct { XMLName xml.Name `xml:"packages"` Packages []PackageDetail `xml:"package"` }
PackageConfig ...
type PackageDetail ¶
type PackageDetail struct { XMLName xml.Name `xml:"package"` ID string `xml:"id,attr"` Version string `xml:"version,attr"` }
PackageDetail ...
type Spec ¶
type Spec struct { Name xml.Name `xml:"package"` Xmlns string `xml:"xmlns,attr,omitempty"` Meta struct { ID string `xml:"id"` Version string `xml:"version"` Title string `xml:"title,omitempty"` Authors string `xml:"authors"` Owners string `xml:"owners,omitempty"` LicenseURL string `xml:"licenseUrl,omitempty"` License string `xml:"license"` ProjectURL string `xml:"projectUrl,omitempty"` IconURL string `xml:"iconUrl,omitempty"` ReqLicenseAccept bool `xml:"requireLicenseAcceptance"` Description string `xml:"description"` ReleaseNotes string `xml:"releaseNotes,omitempty"` Copyright string `xml:"copyright,omitempty"` Summary string `xml:"summary,omitempty"` Language string `xml:"language,omitempty"` Tags string `xml:"tags,omitempty"` Dependencies struct { Dependency []Dependency `xml:"dependency"` } `xml:"dependencies,omitempty"` Repository struct { URL string `xml:"url,attr"` Type string `xml:"type,attr"` } `xml:"repository,omitempty"` } `xml:"metadata"` Files struct { File []File `xml:"file"` } `xml:"files,omitempty"` }
Spec ...
func ConvertFromBytes ¶
ConvertedFromBytes ...
func ConvertFromReader ¶
func ConvertFromReader(reader io.ReadCloser) (*Spec, error)
ConvertFromReader ...
Click to show internal directories.
Click to hide internal directories.