Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mroth/bump
/ functions
Functions
36 in github.com/mroth/bump
⨍
Functions
36
◇
Types & classes
3
↓ 53 callers
Method
String
()
prompter.go:22
↓ 12 callers
Function
timePtr
timePtr returns a pointer to the given time - helper for creating *time.Time values
changelog_test.go:20
↓ 8 callers
Function
logVerbose
(format string, v ...any)
main.go:18
↓ 3 callers
Function
parseGithubRemote
parseGithubRemote parses string remoteURL against known patterns matching GitHub remotes and returns the owner and repo, along with a boolean ok indic
git.go:79
↓ 3 callers
Function
timeTrack
(start time.Time, name string)
main.go:24
↓ 2 callers
Function
NewOptionsFromEnv
NewOptionsFromEnv will return a populated Options struct with any settings defined via environment variables applied.
options.go:49
↓ 2 callers
Function
ParseFlags
ParseFlags takes Options to use as a starting template -- likely populated from NewOptionsFromEnv() -- and parses flags contained in args into a new O
options.go:78
↓ 2 callers
Function
RenderChangelogMarkdown
RenderChangelogMarkdown formats a CommitsComparison suitable for markdown display in a GitHub Flavored Markdown release notes field. TODO: cap max nu
changelog.go:37
↓ 2 callers
Function
RenderChangelogScreen
RenderChangelogScreen formats a CommitsComparison suitable for displaying on the screen to the user, abbreviated to try to not overflow a 80x24 termin
changelog.go:17
↓ 2 callers
Function
_detectRemoteURL_GoGit
detectRemoteURL implementation using go-git will work even if git is not installed on users machine one more dependency to track and keep up to date
git.go:40
↓ 2 callers
Function
defaultGithubClient
defaultGithubClient returns a OAuth scoped Github API Client if GITHUB_TOKEN is set the local environment, or an unauthorized one otherwise.
github.go:59
↓ 2 callers
Function
firstCommitMsgLine
(c github.RepositoryCommit)
changelog.go:48
↓ 2 callers
Function
getBoolEnv
dont bother with ok confirmation like in LookupEnv since we just want to get a zero value then anyhow
options.go:58
↓ 2 callers
Function
githubRepoDetect
githubRepoDetect attempts to detect whether a given path is part of a git repository that has a GitHub remote as the origin, and if so, returns the ow
git.go:19
↓ 2 callers
Function
resetEnviron
resetEnviron cleasrs and then sets the environment to match a []string of key=value pairs, which happens to be exactly what os.Environ() from the stan
options_test.go:106
↓ 1 callers
Function
ParseAll
ParseAll rolls up all CLI option parsing curently needed for main()
options.go:100
↓ 1 callers
Function
Version
()
version.go:18
↓ 1 callers
Function
_detectRemoteURL_LocalGit
detectRemoteURL implementation shelling out to local copy of git requires git to be installed on machine uses os/exec from standard library, does not
git.go:63
↓ 1 callers
Function
compareRelease
compareRelease is a convenience function wrapping retrieval of a commits comparison between current default branch HEAD and a given release tagName, v
github.go:40
↓ 1 callers
Function
comparisonURL
comparisonURL makes a GitHub web view URL for comparing two tagged semvers.
changelog.go:55
↓ 1 callers
Function
draftReleaseURL
draftReleaseURL constructs a URL to open a new draft release on GitHub for given owner/repo with a semver compatible tag based on the semver.Version i
main.go:115
↓ 1 callers
Function
getLatestRelease
getLatestRelease is a convenience function wrapping retrieval of latest GitHub release for owner and repo It will automatically use an OAuth scoped t
github.go:17
↓ 1 callers
Function
prompt
(currVersion *semver.Version)
prompter.go:28
↓ 1 callers
Function
reverseCommitOrder
(cc *github.CommitsComparison)
github.go:50
↓ 1 callers
Function
usage
()
options.go:28
Function
Benchmark_detectRemoteURL_GoGit
(b *testing.B)
git_test.go:63
Function
Benchmark_detectRemoteURL_LocalGit
(b *testing.B)
git_test.go:69
Function
Benchmark_parseGithubRemote
(b *testing.B)
git_test.go:75
Method
Close
Close implements an io.WriterCloser over os.Stderr.
prompter.go:73
Function
TestOptionsPrecedence
(t *testing.T)
options_test.go:9
Function
TestRenderChangelogMarkdown
(t *testing.T)
changelog_test.go:194
Function
TestRenderChangelogScreen
(t *testing.T)
changelog_test.go:166
Function
Test_githubRepoDetect
(t *testing.T)
git_test.go:51
Function
Test_parseGithubRemote
(t *testing.T)
git_test.go:5
Method
Write
Write implements an io.WriterCloser over os.Stderr, but it skips the terminal bell character.
prompter.go:64
Function
main
()
main.go:29