Documentation
¶
Overview ¶
Package utils
Index ¶
- Variables
- func GetRepositoryDir() (string, error)
- func InitLogger()
- func InitSentry()
- func ReplaceYAMLField(content, oldField, newField string) string
- func ReplaceYAMLFieldValue(content, field, newValue string) string
- func TeardownSentry()
- func VersionString() string
- type GitIgnore
- type GitRemote
- type MultipleCodecraftersRemotesFoundError
- type NoCodecraftersRemoteFoundError
Constants ¶
This section is empty.
Variables ¶
View Source
var Commit string = "unknown"
View Source
var Logger zerolog.Logger
View Source
var Version string = "0"
Functions ¶
func GetRepositoryDir ¶
func InitLogger ¶
func InitLogger()
func InitSentry ¶
func InitSentry()
func ReplaceYAMLField ¶
func ReplaceYAMLFieldValue ¶
func TeardownSentry ¶
func TeardownSentry()
func VersionString ¶
func VersionString() string
Types ¶
type GitIgnore ¶
type GitIgnore struct {
// contains filtered or unexported fields
}
func NewGitIgnore ¶
type GitRemote ¶
func IdentifyGitRemote ¶
func (GitRemote) CodecraftersRepositoryId ¶
func (GitRemote) CodecraftersServerURL ¶
func (GitRemote) IsCodecrafters ¶
type MultipleCodecraftersRemotesFoundError ¶
type MultipleCodecraftersRemotesFoundError struct {
Remotes []GitRemote
}
func (MultipleCodecraftersRemotesFoundError) Error ¶
func (e MultipleCodecraftersRemotesFoundError) Error() string
type NoCodecraftersRemoteFoundError ¶
type NoCodecraftersRemoteFoundError struct {
Remotes []GitRemote
// contains filtered or unexported fields
}
func (NoCodecraftersRemoteFoundError) Error ¶
func (e NoCodecraftersRemoteFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.