diff options
| author | Jeff Carr <[email protected]> | 2024-12-03 18:03:29 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-03 18:03:29 -0600 |
| commit | 54cdb3fbec0fc6336917702326a56816436f2d21 (patch) | |
| tree | c2264047560afa222c4f9debaeb10f7d4f4885de /common.go | |
| parent | 283bd90e91d22e107cff71fcc613b8d646784aba (diff) | |
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 32 |
1 files changed, 0 insertions, 32 deletions
@@ -37,28 +37,6 @@ func (rs *RepoStatus) String() string { return rs.path.String() } -// returns the go path for the repo. "go.wit.com/apps/autotypist" -func (rs *RepoStatus) GoName() string { - return rs.GoPath() -} - -// not sure which name is easier to remember. probably this one -func (rs *RepoStatus) GoPath() string { - return rs.goPath.String() -} - -// full path -func (rs *RepoStatus) FullPath() string { - return rs.realPath.String() -} - -func (rs *RepoStatus) IsPrimitive() bool { - if rs.primitive.String() == "true" { - return true - } - return false -} - // returns the filesystem path to the repo func (rs *RepoStatus) Path() string { if rs == nil { @@ -185,7 +163,6 @@ func (rs *RepoStatus) IncrementVersion() bool { rs.EnableSelectTag() rs.setTag() newtag := "v" + rs.newversion.String() - log.Log(REPOWARN, rs.GoPath(), "old version:", rs.LastTag(), "new version:", newtag) rs.targetReleaseVersion.SetText(newtag) return true } @@ -212,15 +189,6 @@ func (rs *RepoStatus) SetPrivate(b bool) { } } -// returns a name for human consuption only -// todo: implement nicknames -func (rs *RepoStatus) Name() string { - if rs.IsGoLang() { - return rs.GoPath() - } - return rs.Path() -} - func trimNonNumericFromStart(s string) string { for i, r := range s { if unicode.IsDigit(r) { |
