Back to Chezmoi

`promptInt` *prompt* [*default*]

assets/chezmoi.io/docs/reference/templates/init-functions/promptInt.md

2.70.2220 B
Original Source

promptInt prompt [default]

promptInt prompts the user with prompt and returns the user's response interpreted as an integer. If default is passed and the user's response is empty then it returns default.