Documentation ¶
Index ¶
- func PrintToFile(output string, filename string)
- func PrintToTerminal(output string)
- func SetParentVersionInPom(pomPath string, currentVersion string, newVersion string)
- func SetParentVersionInText(pomText string, currentVersion string, newVersion string) string
- func UpdateParentVersion(project Project)
- type PomArtifactID
- type PomGroupID
- type PomParent
- type PomProject
- type PomProjects
- type PomVersion
- type Project
- type Projects
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintToFile ¶
PrintToFile prints the given string to the specified file
func PrintToTerminal ¶
func PrintToTerminal(output string)
PrintToTerminal prints the given string to the terminal
func SetParentVersionInPom ¶
func SetParentVersionInText ¶
func UpdateParentVersion ¶
func UpdateParentVersion(project Project)
Types ¶
type PomArtifactID ¶
type PomArtifactID struct {
Value string `xml:",chardata"`
}
PomArtifactID the id of the given pom file
type PomGroupID ¶
type PomGroupID struct {
Value string `xml:",chardata"`
}
PomGroupID is the group to which this project belongs
type PomParent ¶
type PomParent struct { GroupID PomGroupID `xml:"groupId"` ArtifactID PomArtifactID `xml:"artifactId"` Version PomVersion `xml:"version"` }
PomParent contains information on this projects parent
type PomProject ¶
type PomProject struct { XMLName xml.Name `xml:"project"` Parent PomParent `xml:"parent"` GroupID PomGroupID `xml:"groupId"` ArtifactID PomArtifactID `xml:"artifactId"` Version PomVersion `xml:"version"` FullPath string }
PomProject represent a pom file
type PomVersion ¶
type PomVersion struct {
Value string `xml:",chardata"`
}
PomVersion is the version of this project
type Project ¶
type Project struct { Parent *Project `json:"-"` Children Projects ArtifactID string GroupID string Version string MismatchParentVersion string FullPath string MissingParent string }
Project represent a single project with links to parent and child projects
type Projects ¶
type Projects []*Project
Projects is a list of type Project
func GetProjects ¶
GetProjects get all projects by reading the given directory
Click to show internal directories.
Click to hide internal directories.