chezmoi icon indicating copy to clipboard operation
chezmoi copied to clipboard

feat: Add --prompt flag to init command

Open twpayne opened this issue 2 years ago • 1 comments

As suggested by @felipecrs in #2204.

twpayne avatar Jul 29 '22 18:07 twpayne

Calling init with --data=false leads to B, so calling init with --prompt may results in A...

Good question and thank you for the review! I believe that calling init with --prompt always results in B. Note that the default value is only used when the user replies to the prompt with an empty string. However, I might have missed something...

twpayne avatar Jul 30 '22 00:07 twpayne