-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
promptString is not yielding the expected result #3834
Comments
Do you already have |
The example of my post was extracted from the documentation in the Create a config file on a new machine automatically section. Am I wrong to assume that after executing the
|
Yes.
Breaking the arguments to
map and path tell chezmoi where to find the existing value. prompt is the prompt for the user if there is no existing value. default is the default value if the user hits enter in response to the prompt. In the case of
map is |
My bad. The problem was that I never actually ran Thank you so much! Sorry for the trouble. |
I just tested this with interesting results.
|
The value passed to the $ chezmoi execute-template --verbose --init --promptString 'Email address=me@mail.com' < ~/.local/share/chezmoi/.chezmoi.toml.tmpl Note |
Thank you so much. I completely misunderstood the flag. I thought that this |
What exactly are you trying to do?
Using the example case of defining a variable during the init step. I'm currently testing by executing the template.
The expected result should be that the template should have been evaluated to
me@home.org
What have you tried so far?
Where else have you checked for solutions?
Output of
chezmoi doctor
Additional context
My use case is slightly different, but I used the default example as a sanity check. I still haven't gotten the expected result.
The text was updated successfully, but these errors were encountered: