Flagsmith / Flagsmith/flagsmith-cli

Improve hints around `flag create`

Đang mở Phù hợp với người mới
#64 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
12
Fork
3
Merge trung bình
14 giờ 56 phút
Pull request đã merge (30 ngày)
8

Mô tả

Testers report confusion upon seeing this message:

```
matvei@macstream ~ % flagsmith flag list
No flags.
matvei@macstream ~ % flagsmith flag create
Error: flags exist per environment, so there is nothing to create
To create the feature itself, run `flagsmith feature create `.
```

It seems we can do a better job directing users to `feature create`, e.g.:

```
matvei@macstream ~ % flagsmith flag create
Error: flags can only be changed, not created.
To create a feature, run `flagsmith feature create `.
To change a flag, run `flagsmith flag update `.
```

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

Hướng nghiên cứu

Locate the implementation of the `flag create` command and the code that produces its current error message. Update the guidance to explain that flags are changed rather than created, point users to `feature create` and `flag update`, and verify the resulting command output.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
go
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
72/100

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.