git

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEnvToGitignore

func AddEnvToGitignore() error

AddEnvToGitignore adds .env* to .gitignore

func CheckEnvGitignore

func CheckEnvGitignore() bool

CheckEnvGitignore checks if .env files are in .gitignore

func DetectRepo

func DetectRepo() (string, error)

DetectRepo detects the GitHub repository from git remote

func GetGitRoot

func GetGitRoot() (string, error)

GetGitRoot returns the root directory of the git repository

func IsGitRepository

func IsGitRepository() bool

IsGitRepository checks if the current directory is a git repository

func ParseGitHubURL

func ParseGitHubURL(url string) (string, error)

ParseGitHubURL extracts owner/repo from a GitHub URL

Types

type MonorepoInfo added in v0.4.1

type MonorepoInfo struct {
	IsMonorepo bool
	Tool       string // "turborepo", "nx", "pnpm", "lerna", "rush", "yarn", "npm"
}

MonorepoInfo contains information about detected monorepo setup

func DetectMonorepo added in v0.4.1

func DetectMonorepo() MonorepoInfo

DetectMonorepo checks if the repository is a monorepo by looking for common monorepo tool configuration files

Jump to

Keyboard shortcuts

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