Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Standard/reusable CLI flags

オープン
#39 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

Go、Python、TypeScript の関数テンプレートを比較し、それぞれのフラグ、環境変数、デフォルト値を一覧化します。次に TypeScript SDK のエントリーポイントを調査し、作成者が標準の CLI 定義を 1 つインポートするにはどうすればよいかを判断します。共有オプションとデフォルト値がテンプレートのボイラープレートに重複して存在するのではなく、単一の SDK ソースに存在すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement
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.

主要言語
TypeScript
スター
3
フォーク
2
平均マージ
1日 4時間
マージ済み PR(30日)
17

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

crossplane/function-sdk-typescript のほかの issue

crossplane/function-sdk-typescript の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。