Skip to content

Commit

Permalink
fix(readme): add dashe to fetch-remote
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran Krakovsky committed Oct 3, 2023
1 parent 2fda60d commit cadb10a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ config
bin/*
.idea
*.DS_Store
.DS_Store
.DS_Store
internal/services/drivers/version_control/ext-temp-git-test/*
internal/services/drivers/version_control/int-temp-git-test/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ so save credentials can be used, instead of generating tokens.
### How to use
in order to activate this feature all you have to do is to set `fetch-remote` to true like so:
``` bash
terra-crust terraform-all --main-template-path=./terraform/main.tmpl --destination-path="." --source-path=".../modules" fetch-remote=true
terra-crust terraform-all --main-template-path=./terraform/main.tmpl --destination-path="." --source-path=".../modules" --fetch-remote=true
```
or with an external git client with the flag `--ext-git` to true like so:
``` bash
Expand Down
Submodule zones deleted from d67ac5
Submodule zones deleted from d67ac5
3 changes: 1 addition & 2 deletions internal/services/template_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ func (th *TemplateHandler) WriteTemplateToFile(fileName, templatePath, destinati
}

buf := new(bytes.Buffer)
err = tmpl.Execute(buf, out)
if err != nil {
if err = tmpl.Execute(buf, out); err != nil {
th.logger.Error("Failed executing template", err.Error())
return err
}
Expand Down

0 comments on commit cadb10a

Please sign in to comment.