如何自动将多个输入传递给circleci中的提示?

问题描述 投票:0回答:1

我正在尝试应用cookiecutter模板。当我运行命令“ cookiecutter private_git_repo”时,它询问我是否要使用叠加层?因此,我需要对此表示“是”。稍后,它提供了多个选项来询问我要使用哪个叠加层。因为,我想在circleci配置中实现这一点,所以我想要一种自动方式,将“是”和“ overlay_name”传递给命令。

我无法使用|将多个输入传递给提示问题。如何在Linux终端中实现这一目标?

python-3.x shell circleci cookiecutter
1个回答
0
投票

从此处的文档:https://cookiecutter.readthedocs.io/en/latest/readme.html

Unless you suppress it with --no-input, you are prompted for input.

简短回答:您需要运行cookiecutter private_git_repo --no-input,以绕过要求您键入yes的命令提示符。

但是,当您提示您输入“重叠广告”时,您能否阐明您的意思?我不熟悉cookiecutter中的“覆盖”一词。您是说模板吗?

© www.soinside.com 2019 - 2024. All rights reserved.