apply
command custom flags
#3657
Blacksmoke16
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
This reminds me of another discussion about a similar issue, take a look at #3202, if that is something else, then I'm sure somoeone from the comunity that uses encryption would chime in. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I have a bit of an interesting use case I wanted to pitch. I searched around a bit and didn't really see anything that would help with. But is entirely possible I missed something.
Basically the gist of it is I use https://www.chezmoi.io/user-guide/password-managers/bitwarden/ to handle secrets (ssh keys, auth tokens, etc). However this causes
chezmoi apply
to always prompt me to enter my Bitwarden password to allow it to access my vault. I would rather not keep it unlocked all the time, nor do I like having to type it in every time I want to change some small setting in my bash settings or something.My initial idea for this is the idea of custom flags that can be defined on the
apply
command. E.g. something along the lines of:Then it would only prompt for my password when I want to refresh secrets, via
chezmoi apply -Drefresh-secrets
.Thoughts? Is there a better way to go about this that is already built-in?
EDIT: I guess the problem would be having chezmoi know not to remove that text when the flag isn't passed. So maybe its not as straightforward as I was thinking.
Beta Was this translation helpful? Give feedback.
All reactions