-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: Add support for upcoming CHEZMOI_SOURCE_FILE #72
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VorpalBlade
force-pushed
the
feature/auto-env
branch
from
January 27, 2024 19:59
64dd8b8
to
9851867
Compare
VorpalBlade
force-pushed
the
feature/auto-env
branch
2 times, most recently
from
January 27, 2024 23:05
d93595a
to
d431420
Compare
VorpalBlade
force-pushed
the
feature/auto-env
branch
3 times, most recently
from
January 29, 2024 13:38
567f1b2
to
e5f82f3
Compare
VorpalBlade
force-pushed
the
feature/auto-env
branch
7 times, most recently
from
February 3, 2024 19:13
6e74126
to
3a3492f
Compare
VorpalBlade
force-pushed
the
feature/auto-env
branch
2 times, most recently
from
February 9, 2024 20:18
199b251
to
4de3f3b
Compare
Since we need it many times (during a single --add operation), cache it on first query.
This renames --style=path to --style=path-tmpl and adds a new --style=path that doesn't template the added script. On new enough chezmoi we now use environment variables to locate the .src.ini files. Use the current chezmoi version to detect which template style to use for --add.
VorpalBlade
force-pushed
the
feature/auto-env
branch
from
February 12, 2024 23:18
4de3f3b
to
d5b3d8d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This will only work once twpayne/chezmoi#3518 has landed in a release of chezmoi
TODO:
--help-syntax
- CHEZMOI_AUTO_SOURCE_VERSION
- source_specification.md
--add
have a--templated
(to add non-templated by default)? What about converting between them? Some thought needed for UX.Rolled into
--style
for now--style
differ based on chezmoi version?--add
do when you have an old chezmoi? Do we need to parse the version number? :(Yes, though see below