{"modulePath":"github.com/181192/ops-cli","version":"v0.1.20","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package gitconfig\n\n## Functions\n\n```go\nfunc Email() (string, error)\n```\nEmail extracts git user email from \\`$HOME/.gitconfig\\` file or \\`$GIT\\_CONFIG\\`. This is same as Global(\"user.email\")\n\n```go\nfunc Entire(key string) (string, error)\n```\nEntire extracts configuration value from \\`$HOME/.gitconfig\\` file , \\`$GIT\\_CONFIG\\`, /etc/gitconfig or include.path files.\n\n```go\nfunc Local(key string) (string, error)\n```\nLocal extracts configuration value from current project repository.\n\n```go\nfunc OriginURL() (string, error)\n```\nOriginURL extract remote origin url from current project repository. This is same as Local(\"remote.origin.url\")\n\n```go\nfunc Username() (string, error)\n```\nUsername extracts git user name from \\`Entire gitconfig\\`. This is same as Entire(\"user.name\")\n\n## Types\n\n```go\ntype ErrNotFound struct {\n\tKey string\n}\n```\nErrNotFound error not found\n\n```go\nfunc (e *ErrNotFound) Error() string\n```\n\n","path":"github.com/181192/ops-cli/pkg/git/gitconfig","name":"gitconfig","synopsis":"","isRedistributable":true}
