crossplane / crossplane/function-sdk-python

Standard/reusable CLI flags

Ouverte
#229 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
12
Forks
15
Merge moyen
2 j 5 h
PR mergées (30 j)
3

Description

### 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).

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Start by comparing the CLI boilerplate in the Go, Python, and TypeScript function templates, including flags, environment variables, and defaults. The work is done when the project has an agreed single source of truth and a clear mechanism for propagating standardized options and default changes to functions.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
go, python, typescript
Domaine
cli, tooling
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Active
Clarté
À clarifier
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.