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 ·