felangel / felangel/mason

fix: Declare brick.yaml variable as a list of strings

Đang mở
#583 6 bình luận 0 reaction 1 người được giao Được @felangel nhận Xem trên GitHub
enhancement candidate
Ngôn ngữ chính
Dart
Star
1.1k
Fork
113
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Description**

I'd like to configure one of my brick variables to be a list of strings. I'd like to provide a default value for that list in brick.yaml.

```yaml
vars:
some_list_var:
type: array
description: Some description
default:
- This is the default option
prompt: What items do you want?
```

**Expected Behavior**

I'm prompted for a list of values, with the default set to what configuration in the brick.yaml file.

**Actual behavior**

I get an error when running mason.

**Screenshots**

![Screen Shot 2022-10-28 at 10 15 31 PM](https://user-images.githubusercontent.com/7259036/198815205-f517b115-68d8-4cfa-83a4-a933bd6b87ee.png)
In this case, the variable is named "copyright_holders"

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.