syntasso / kratix-cli

CLI-based tool to build Promises
Apache License 2.0
2 stars 1 forks source link

Better help message for init commands #33

Closed ChunyiLyu closed 2 months ago

ChunyiLyu commented 2 months ago

closes #31

❯ ./bin/kratix init helm-promise
Error: accepts 1 arg(s), received 0
Usage:
  kratix init helm-promise PROMISE-NAME --chart-url HELM-CHART-URL --group PROMISE-API-GROUP --kind PROMISE-API-KIND [--chart-version] [flags]

❯ ./bin/kratix init operator-promise
Error: accepts 1 arg(s), received 0
Usage:
  kratix init operator-promise PROMISE-NAME --group PROMISE-API-GROUP --version PROMISE-API-VERSION --kind PROMISE-API-KIND --operator-manifests OPERATOR-MANIFESTS-DIR --api-schema-from CRD-NAME [flags]

❯ ./bin/kratix init promise
Error: accepts 1 arg(s), received 0
Usage:
  kratix init promise PROMISE-NAME --group PROMISE-API-GROUP --kind PROMISE-API-KIND [flags]