-
Let's say I have the following chezmoi scripts in my source state:
If I want chezmoi to list all the scripts, I can run:
Is there a way to make chezmoi show the order in which they would be executed (e.g.,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Yes. You can run |
Beta Was this translation helpful? Give feedback.
-
Thanks for following up here - this is really helpful to people who have this problem in the future!
This is not needed. Using a non-existent state file is sufficient. chezmoi will create the state file. The problem with using an empty state file is that an empty file is not a valid BoltDB database. You can use: $ chezmoi status --persistent-state=$(mktemp -d)/chezmoistate.boltdb --include=scripts |
Beta Was this translation helpful? Give feedback.
Thanks for following up here - this is really helpful to people who have this problem in the future!
This is not needed. Using a non-existent state file is sufficient. chezmoi will create the state file. The problem with using an empty state file is that an empty file is not a valid BoltDB database.
You can use:
$ chezmoi status --persistent-state=$(mktemp -d)/chezmoistate.boltdb --include=scripts