Files
git-automation-cli/internal/util/env.go
Dev 15bbfdcda2 feat: initial commit of Git Automation CLI
- Add comprehensive Git workflow automation tools
- Include branch management utilities
- Add commit helpers with conventional commit support
- Implement GitHub integration for PR management
- Add configuration management system
- Include comprehensive test coverage
- Add professional documentation and examples
2025-09-11 17:02:12 +03:00

14 lines
142 B
Go

package util
import (
"os"
)
func GetenvOrDefault(key, def string) string {
v := os.Getenv(key)
if v == "" {
return def
}
return v
}