Skip to content

Save computed value #1407

Answered by henningWoehr
henningWoehr asked this question in Q&A
Nov 14, 2023 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

I found a workaround for my problem:

copier.yaml

project_type:
  type: str
  help: "PROJECT TYPE: Choose your project type"
  choices:
    Python Poetry: python_poetry
    Docker image extension (extending a base image with additional features): docker_image_extension
    Other: other

schedule:
  type: json
  help: "SCHEDULE: What is your update schedule?"
  default: ["* * * * *"]

docker_username:
  type: str
  help: "DOCKER: Enter your docker username (leave blank if not used)"
  default: schulzbot

docker_token:
  when: "{% if docker_username %} true {% endif %}"
  type: str
  help: "DOCKER: Enter your docker token"
  secret: true
  placeholder: "dckr_pat_..."
  validator: "{% if dock…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@henningWoehr
Comment options

@pawamoy
Comment options

pawamoy Nov 14, 2023
Collaborator

@henningWoehr
Comment options

@pawamoy
Comment options

pawamoy Nov 14, 2023
Collaborator

@henningWoehr
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by henningWoehr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants