Skip to content

Commit 1896757

Browse files
authored
docs: Improve docs on changing copier answers (#143)
1 parent 98d74bd commit 1896757

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ pixi exec --spec copier --spec ruamel.yaml -- copier copy --trust https://github
1212
To update to a newer template version:
1313

1414
```bash
15-
pixi exec --spec copier --spec ruamel.yaml -- copier update --defaults --trust
15+
pixi exec --spec copier --spec ruamel.yaml -- copier update --defaults --trust .
1616
```
1717

1818
Note that copier will show `Conflict` for files that have manual changes.
1919
This is normal. As long as there are no merge conflict markers in the files all patches applied cleanly.
20+
21+
If you want to change any answer that you gave before, run:
22+
23+
```bash
24+
pixi exec --spec copier --spec ruamel.yaml -- copier update --trust --defaults --vcs-ref=:current: --data answer_name=answer_value .
25+
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
# This file is managed by Copier; DO NOT EDIT OR REMOVE.
2+
#
3+
# If you want to change any of the copier answers, run one of the following:
4+
# 1. If you want to answer _all_ questions again:
5+
# `copier update --trust --vcs-ref=:current: .`
6+
# 2. If you want to answer a _specific_ question again:
7+
# `copier update --trust --defaults --vcs-ref=:current: --data answer_name=answer_value .`
8+
#
9+
# If you want to run this as a one-off command, prefix with:
10+
# `pixi exec --spec copier --spec ruamel.yaml -- {command}`
211
{{ _copier_answers|to_nice_yaml -}}

0 commit comments

Comments
 (0)