knative / toolbox

Toolbox: tools used in Knative project
Apache License 2.0
5 stars 11 forks source link

Codegen Go-native tool #18

Open cardil opened 11 months ago

cardil commented 11 months ago

Rewrite codegen-library.sh script into a Golang tool knative.dev/toolbox/codegen. The current script:

https://github.com/knative/hack/blob/158898889ae8670c7e68e522e32cd6800e1729a0/codegen-library.sh#L19-L35

Invent new CLI, for example:

go run knative.dev/toolbox/codegen@latest k8s \
  "deepcopy,client,informer,lister" \
  knative.dev/serving/pkg/client knative.dev/serving/pkg/apis \
  "serving:v1 serving:v1beta1 autoscaling:v1alpha1"

go run knative.dev/toolbox/codegen@latest knative \
  "injection" \
  knative.dev/serving/pkg/client knative.dev/serving/pkg/apis \
  "serving:v1 serving:v1beta1 autoscaling:v1alpha1"

go run knative.dev/toolbox/codegen@latest deepcopy-gen \
  -i knative.dev/serving/pkg/apis/config \
  -i knative.dev/serving/pkg/reconciler/route/config \
  -i knative.dev/serving/pkg/autoscaler/config/autoscalerconfig \
  -i knative.dev/serving/pkg/autoscaler/scaling \
  -i knative.dev/serving/pkg/deployment \
  -i knative.dev/serving/pkg/gc
github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

cardil commented 5 months ago

/reopen /remove-lifecycle stale /triage accepted

knative-prow[bot] commented 5 months ago

@cardil: Reopened this issue.

In response to [this](https://github.com/knative/toolbox/issues/18#issuecomment-2039478124): >/reopen >/remove-lifecycle stale >/triage accepted Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.