mirror of
https://github.com/copier-org/copier.git
synced 2025-05-05 15:32:54 +00:00
Document how to update when changing a multiselect base answer (#1781)
* Document how to update when changing a multiselect base answer The documentation to update, changing only one answer when the question is a multi-select base choice, is missing. This is from https://github.com/copier-org/copier/issues/1474#issuecomment-2328522026, but it also indicate to create the `.yaml` file in another directory (to avoid error `Destination repository is dirty; cannot continue. Please commit or stash your local changes and retry.`). * style: autoformat with pre-commit * docs: adapt to global copywriting style Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jairo Llopis <973709+yajo@users.noreply.github.com>
This commit is contained in:
parent
6a9de7e2e6
commit
ee9918957c
@ -129,6 +129,19 @@ to go through the whole questionnaire again:
|
||||
copier update --defaults --data updated_question="my new answer"
|
||||
```
|
||||
|
||||
You can achieve the same using a [data file][data_file]:
|
||||
|
||||
```shell
|
||||
echo "updated_question: my new answer" > /tmp/data-file.yaml
|
||||
copier update --defaults --data-file /tmp/data-file.yaml
|
||||
```
|
||||
|
||||
!!! note
|
||||
|
||||
Due to [issue #1474](https://github.com/copier-org/copier/issues/1474),
|
||||
it is not yet possible to update a multiselect choice using ˋ--dataˋ.
|
||||
Use ˋ--data-fileˋ instead for now.
|
||||
|
||||
## How the update works
|
||||
|
||||
To understand how the updating process works, take a look at this diagram:
|
||||
|
Loading…
x
Reference in New Issue
Block a user