package developmentversion
import "github.com/oslokommune/okctl/pkg/version/developmentversion"
Package developmentversion knows how to fetch the current version in development mode
Index ¶
Constants ¶
const HardCodedVersion = "0.0.10"
HardCodedVersion is the version used if contact with GitHub fails
Functions ¶
func GetVersionInfo ¶
func GetVersionInfo() string
GetVersionInfo returns the current version
func Reset ¶
func Reset()
Reset resets all globals. Useful for testing.
Types ¶
type ListReleasesFn ¶
type ListReleasesFn func(ctx context.Context, owner string, repo string) ([]*RepositoryRelease, error)
ListReleasesFn returns GitHub releases
var ListReleases ListReleasesFn = listReleases //nolint:gochecknoglobals
ListReleases knows how to list GitHub releases
type RepositoryRelease ¶
type RepositoryRelease = github.RepositoryRelease
RepositoryRelease shadows github.RepositoryRelease
Source Files ¶
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 18 hours ago –
Tools for package owners.