Standard/reusable CLI flags
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 30/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 活躍
- 技術堆疊
- go, python, typescript
研究方向
首先比較 Go、Python 和 TypeScript function template 中的 CLI 樣板程式碼,包括 flags、環境變數和預設值。當專案擁有一個經協議確定的單一事實來源,以及一種將標準化選項和預設值變更傳遞給 functions 的明確機制時,這項工作就完成了。
由索引模型根據 Issue 內容生成。
描述
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. programatically raise the max GRPC size in all functions).
- 主要語言
- Python
- 星號
- 12
- 分支
- 15
- 平均合併
- 1 天 12 小時
- 30 天內合併 PR
- 7
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
crossplane/function-sdk-python 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 68/100
-
enhancement
難度 5/5 一週以上 新手友好度 42/100
-
enhancement
難度 5/5 一週以上 新手友好度 35/100
crossplane/function-sdk-python#199 · 4 則留言 · 3 個 reaction ·
-
bug
難度 4/5 3-5 天 新手友好度 35/100
crossplane/function-sdk-python#129 · 1 則留言 ·
-
難度 1/5 1 小時以內 新手友好度 10/100
查看 crossplane/function-sdk-python 的全部 Issue
相似的 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 70/100
canonical/paas-charm#368 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
-
tech debt
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 1/5 1 小時以內 新手友好度 90/100
StevenBlack/hosts#3256 ·
-
難度 1/5 1 小時以內 新手友好度 90/100
qualcomm/qai-appbuilder#275 ·