Skip to content

Commit

Permalink
Version 1.2.0. Inja is default engine
Browse files Browse the repository at this point in the history
  • Loading branch information
navrocky committed Jan 23, 2025
1 parent 4f159c3 commit d12b0b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Download and copy binary to any destination specified in `PATH` (~/bin, /usr/loc
Do not forget to set execution flag on binary with `chmod`.

```sh
sudo curl https://github.com/navrocky/muenvsubst/releases/download/1.1.0/muenvsubst -Lo /usr/local/bin/muenvsubst
sudo curl https://github.com/navrocky/muenvsubst/releases/download/1.2.0/muenvsubst -Lo /usr/local/bin/muenvsubst
sudo chmod +x /usr/local/bin/muenvsubst
```

Expand All @@ -32,7 +32,7 @@ USAGE: ./muenvsubst [ -e, --engine <arg> ] [ -h, --help <arg> ] [ -V,
OPTIONAL:
-e, --engine <arg> Use template engine. Supported engines: mstch, inja.
Default is: mstch
Default is: inja
-h, --help <arg> Print this help.
Expand Down
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ int main(int argc, char** argv, char** envp)
cmd.addArgWithFlagAndName('V', "version", false, false, "Output version information and exit");
cmd.addArgWithFlagAndName('e', "engine", true, false,
(stringstream() << "Use template engine. Supported engines: " << MSTCH_ENGINE << ", " << INJA_ENGINE
<< ". Default is: " << MSTCH_ENGINE)
<< ". Default is: " << INJA_ENGINE)
.str());
try {
cmd.parse();

if (cmd.isDefined("-V")) {
cout << "1.1.0" << endl;
cout << "1.2.0" << endl;
return 0;
}

string engine = MSTCH_ENGINE;
string engine = INJA_ENGINE;
if (cmd.isDefined("-e")) {
engine = cmd.value("-e");
}
Expand Down

0 comments on commit d12b0b7

Please sign in to comment.