Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Code Generation

Đang mở
#32 0 bình luận 0 reaction 2 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@anghelflorinm đang làm issue này rồi.

Từ ngày 17/10/2024.

Đánh giá

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

Mô tả

epic

Description

Feature flags typically rely on hard coded strings to reference specific feature flags. This can be tedious to maintain in a codebase. Code generation can address this shortcoming by creating strongly typed flag accessors, minimizing configuration errors and providing a better developer experience. By generating these accessors, developers can avoid issues related to incorrect flag names or types, resulting in more reliable and maintainable code.

Goals

  • Establish a standardized flag manifest format that can be easily converted from existing configurations.
    • JSON Schema (source of truth)
    • Auto-gen docs from schema and clarifying docs
  • Develop a CLI tool to generate strongly typed flag accessors for multiple programming languages.
    • Create support for Java, JavaScript, Go, and Markdown
  • Create a format that allows for future extensions and modularization of flags.
    • Simply adding support for new languages
      • Reduce boilerplate
      • Standardize templates format
  • Create contributing documentation

Non-goals

  • The initial scope does not include creating tools to convert provider-specific configurations to the new flag manifest format.
  • The project won't initially focus on validating flag configurations for consistency with the flag manifest.
    • Create prototype prior to a stable release
  • The project does not aim to create a general-purpose configuration tool for feature flags beyond the scope of the codegen tool.

Resources

Ngôn ngữ chính
Go
Star
63
Fork
22
Merge trung bình
1 giờ 10 phút
Pull request đã merge (30 ngày)
24

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của open-feature/cli

Tất cả issue của open-feature/cli

Issue tương tự

Thêm issue về Go

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.