utils

package
v0.0.0-...-8e88ac7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package utils

Index

Constants

This section is empty.

Variables

View Source
var Commit string = "unknown"
View Source
var Version string = "0"

Functions

func GetRepositoryDir

func GetRepositoryDir() (string, error)

func InitLogger

func InitLogger()

func InitSentry

func InitSentry()

func ReplaceYAMLField

func ReplaceYAMLField(content, oldField, newField string) string

func ReplaceYAMLFieldValue

func ReplaceYAMLFieldValue(content, field, newValue string) string

func TeardownSentry

func TeardownSentry()

func VersionString

func VersionString() string

Types

type GitIgnore

type GitIgnore struct {
	// contains filtered or unexported fields
}

func NewGitIgnore

func NewGitIgnore(baseDir string) GitIgnore

func (GitIgnore) SkipFile

func (i GitIgnore) SkipFile(path string) (bool, error)

type GitRemote

type GitRemote struct {
	Url  string
	Name string
}

func IdentifyGitRemote

func IdentifyGitRemote(repositoryDir string) (GitRemote, error)

func (GitRemote) CodecraftersRepositoryId

func (r GitRemote) CodecraftersRepositoryId() string

func (GitRemote) CodecraftersServerURL

func (r GitRemote) CodecraftersServerURL() string

func (GitRemote) IsCodecrafters

func (r GitRemote) IsCodecrafters() bool

type MultipleCodecraftersRemotesFoundError

type MultipleCodecraftersRemotesFoundError struct {
	Remotes []GitRemote
}

func (MultipleCodecraftersRemotesFoundError) Error

type NoCodecraftersRemoteFoundError

type NoCodecraftersRemoteFoundError struct {
	Remotes []GitRemote
	// contains filtered or unexported fields
}

func (NoCodecraftersRemoteFoundError) Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL