[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60807] envsubst: support an --in-place mode
From: |
Andrew Stribblehill |
Subject: |
[bug #60807] envsubst: support an --in-place mode |
Date: |
Mon, 21 Jun 2021 09:09:16 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?60807>
Summary: envsubst: support an --in-place mode
Project: GNU gettext
Submitted by: stribb
Submitted on: Mon 21 Jun 2021 01:09:14 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Quite a few people in the production arena are using envsubst to
interpolate their files as part of their continuous integration / continuous
deployment (CI/CD) pipelines.
At present, the workflow is typically:
T=$(mktemp)
envsubst < template_file > $T
mv $T template_file
or, for those of us lucky enough to have Sponge installed:
envsubst < template_file | sponge template_file
If envsubst supported in-place editing, this would be simply:
envsubst -i template_file
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60807>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #60807] envsubst: support an --in-place mode,
Andrew Stribblehill <=