Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateModuleNameFromPath ¶
CreateModuleNameFromPath creates a module name from the provided path.
func FindVersionSuffix ¶
FindVersionSuffix returns the version suffix or the empty string.
func GetModuleSubdirs ¶
GetModuleSubdirs returns all subdirectories under path that correspond to module major versions. The subdirectories are sorted according to semantic version.
func HasVersionSuffix ¶
HasVersionSuffix returns true if the specified path has a version suffix in the form vN.
func IncrementModuleVersion ¶
IncrementModuleVersion increments the passed in module major version by one. E.g. a provided value of "v2" will return "v3". If ver is "" the return value is "v2".
func IsValidModuleVersion ¶
IsValidModuleVersion returns true if the provided string is a valid module version (e.g. v1.2.3).
Types ¶
type Provider ¶
type Provider interface { DestDir() string NewExports() bool BreakingChanges() bool VersionSuffix() bool NewModule() bool GenerateReport() report.Package }
Provider provides information about a module staged for release.
func GetModuleInfo ¶
GetModuleInfo collects information about a module staged for release. baseline is the directory for the current module staged is the directory for the module staged for release