在 yaml 文件中,我可以在用连字符列出的数组项之间进行注释吗?
In yaml files, can I comment between array items listed with hyphens?
在 yaml
文件中,有一个 args
数组。
我想注释掉数组中间的 2 项。
args:
- "run"
- "deploy"
- "my-service"
# - "--min-instances=1"
# - "--max-instances=3"
- "--port=8080"
这合法吗?
为什么不呢 ;)
您可以查看以下站点:https://www.tutorialspoint.com/yaml/yaml_comments.htm
在 yaml
文件中,有一个 args
数组。
我想注释掉数组中间的 2 项。
args:
- "run"
- "deploy"
- "my-service"
# - "--min-instances=1"
# - "--max-instances=3"
- "--port=8080"
这合法吗?
为什么不呢 ;) 您可以查看以下站点:https://www.tutorialspoint.com/yaml/yaml_comments.htm