list templates + languages in 'kernel create --help'#160
Conversation
Generates the Long help text dynamically from create.Templates and create.SupportedLanguages so scripts and agents can pick `--language` and `--template` non-interactively without falling into the prompt. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Firetiger deploy monitoring skipped This PR didn't match the auto-monitor filter configured on your GitHub connection:
Reason: PR modifies help text generation in the create command, not API endpoints or Temporal workflows as specified in the filter. To monitor this PR anyway, reply with |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8a9cd38. Configure here.
Introduce LanguageShorthand as the inverse of NormalizeLanguage and route the two help-text call sites through it so adding a new language with a shorthand only requires updating types.go. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

Summary
before:
```
FLAGS
-l --language Language of the application
-t --template Template to use for the application
```
after:
```
Languages:
typescript (shorthand: ts)
python (shorthand: py)
Templates:
anthropic-computer-use Implements an Anthropic computer use agent [python, typescript]
browser-use Implements Browser Use SDK [python]
...
```
Test plan
Note
Low Risk
Low risk: changes are limited to CLI help/flag text generation plus a small pure function with unit tests; no scaffolding logic or data paths are modified.
Overview
kernel createhelp output is expanded and generated dynamically: the long description now lists all supported languages (including shorthands) and every template with its description and supported languages, and the command adds concrete non-interactive usage examples.Flag help text is updated to hint available language values and direct users to
--helpfor the template list. A newcreate.LanguageShorthandhelper (with tests) supports rendering shorthand info alongside canonical language names.Reviewed by Cursor Bugbot for commit 6329583. Bugbot is set up for automated code reviews on this repo. Configure here.