a8m / a8m/envsubst

Add support for env files

Đang mở
#23 4 bình luận 7 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
907
Fork
96
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I'd suggest the following enhancement of envsubst to be more useful in combination with Docker/Docker Compose or Systemd Unit files:
* Add option to read environment from env files
* Allow multiple env files to be given and process them in order (to override values from former files to support development purposes)
* Add option to ignore the existing shell environment variables and build a fresh environment using the given env file(s)
This would greatly simplify some development and deployment processes.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Look at the main command implementation in cmd/envsubst/main.go to understand the current argument parsing and substitution logic. The feature requires adding new flags for env files and possibly a fresh environment mode. Check how Go's os package reads environment variables and consider using a library or writing a parser for env file format. Test by building the tool and trying it with sample env files.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
go, shell
Lĩnh vực
cli, tooling
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.