Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangesInfo ¶
type CommitMessageManager ¶
type ElapsedTime ¶
type ElapsedTime func(functionName string) func()
type FileVersion ¶
type FileVersion struct {
// contains filtered or unexported fields
}
func New ¶
func New(log Logger, elapsedTime ElapsedTime, versionConrolHost, repositoryRootPath, groupName, projectName string, commitMessageManager CommitMessageManager) *FileVersion
func (*FileVersion) UpgradeChangeLog ¶
func (f *FileVersion) UpgradeChangeLog(path, destinationPath string, chageLogInfo interface{}) error
UpgradeChangelog aims to append the new release version with the commit information to the CHANGELOG.md file.
func (*FileVersion) UpgradeVariableInFiles ¶
func (f *FileVersion) UpgradeVariableInFiles(filesToUpgrade interface{}, newVersion string) error
UpgradeVariableInFiles aims to update given files with the new release version. It will update the files row containing a given variable name. I.e.: err := UpgradeVariableInFiles(UpgradeFiles{Files: []UpgradeFile{{Path: "./setup.py", DestinationPath: "", VariableName: "__version__"}}), "1.0.1")
From: __version__ = 1.0.0 To: __version__ = 1.0.1
type UpgradeFile ¶
type UpgradeFiles ¶
type UpgradeFiles struct {
Files []UpgradeFile
}
Click to show internal directories.
Click to hide internal directories.