Skip to content

Commit 15af707

Browse files
committed
Merge branch 'ab/i18n-envsubst-doc-fix'
* ab/i18n-envsubst-doc-fix: git-sh-i18n--envsubst: add SYNOPSIS section to the documentation
2 parents b9575e7 + f5008f5 commit 15af707

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Documentation/git-sh-i18n--envsubst.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ NAME
55
----
66
git-sh-i18n--envsubst - Git's own envsubst(1) for i18n fallbacks
77

8+
SYNOPSIS
9+
--------
10+
[verse]
11+
eval_gettext () {
12+
printf "%s" "$1" | (
13+
export PATH $('git sh-i18n--envsubst' --variables "$1");
14+
'git sh-i18n--envsubst' "$1"
15+
)
16+
}
17+
818
DESCRIPTION
919
-----------
1020

0 commit comments

Comments
 (0)