crossplane / crossplane/function-sdk-typescript
Standard/reusable CLI flags
- 主要言語
- TypeScript
- スター
- 3
- フォーク
- 2
- 平均マージ
- 9時間 49分
- マージ済み PR(30日)
- 14
説明
### What problem are you facing?
Each function author today copies CLI boilerplate (mainly flags, environment variables, and defaults) from the function templates (Go, Python, TS). This leads to eventual inconsistency across functions (env var names drift, each author may decide, e.g. GRPC_MESSAGE_SIZE vs MAX_RECV_MESSAGE_SIZE), some functions miss env tags entirely (e.g. DEBUG), etc.
On top of that, there's no single source of truth and when new standard option is added or a default changes, every function must be updated independently. There is no mechanism to propagate changes.
Standardization of CLI arguments/env variables might become useful for 3rd party tooling (e.g. crossplane-diff) which may need to flag all functions in the composition pipeline at the same time (e.g. programmatically raise the max GRPC size in all functions).
### How could this Function help solve your problem?
Move the standard CLI definition into the SDK, in order to eliminate copy&paste and give authors a single import.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Compare the Go, Python, and TypeScript function templates to inventory their flags, environment variables, and defaults. Then inspect the TypeScript SDK entry points and determine how authors could import one standard CLI definition; done means the shared options and defaults have a single SDK source rather than duplicated template boilerplate.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- cli, developer-experience
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100