Skip to content

Commit

Permalink
docs: links to testing-templates
Browse files Browse the repository at this point in the history
  • Loading branch information
dpprdan authored and halostatue committed Jan 24, 2024
1 parent 8dd6c86 commit 2dffe64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
@@ -1,6 +1,7 @@
# `execute-template` [*template*...]

Execute *template*s. This is useful for testing templates or for calling
Execute *template*s. This is useful for [testing
templates](../../user-guide/templating.md#testing-templates) or for calling
chezmoi from other scripts. *templates* are interpreted as literal templates,
with no whitespace added to the output between arguments. If no templates are
specified, the template is read from stdin.
Expand Down
Expand Up @@ -93,7 +93,8 @@ create a file on disk, with the `execute-template` command, for example:
$ chezmoi execute-template "{{ .chezmoi.os }}/{{ .chezmoi.arch }}"
```

This is useful when developing or debugging templates.
This is useful when developing or [debugging
templates](../user-guide/templating.md#testing-templates).

Some password managers allow you to store complete files. The files can be
retrieved with chezmoi's template functions. For example, if you have a file
Expand Down

0 comments on commit 2dffe64

Please sign in to comment.