Skip to content

list templates + languages in 'kernel create --help'#160

Merged
masnwilliams merged 2 commits into
mainfrom
hypeship/create-help-templates
May 12, 2026
Merged

list templates + languages in 'kernel create --help'#160
masnwilliams merged 2 commits into
mainfrom
hypeship/create-help-templates

Conversation

@masnwilliams
Copy link
Copy Markdown
Contributor

@masnwilliams masnwilliams commented May 12, 2026

Summary

  • `kernel create --help` now lists every supported language (with shorthand) and every template (with description + supported languages), so scripts and agents can pick `--language` / `--template` non-interactively without dropping into the prompt
  • Help text is generated from `create.Templates` and `create.SupportedLanguages`, so it stays in sync as templates are added
  • Added two `Example` lines showing the non-interactive flag form

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

  • `go test -short ./cmd/... ./pkg/create/...` passes
  • `kernel create --help` renders languages + templates list and examples
  • sanity check the rendered help on a terminal with non-trivial width

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 create help 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 --help for the template list. A new create.LanguageShorthand helper (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.

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>
@masnwilliams masnwilliams marked this pull request as ready for review May 12, 2026 00:35
@firetiger-agent
Copy link
Copy Markdown

Firetiger deploy monitoring skipped

This PR didn't match the auto-monitor filter configured on your GitHub connection:

Any PR that changes the kernel API. Monitor changes to API endpoints (packages/api/cmd/api/) and Temporal workflows (packages/api/lib/temporal) in the kernel repo

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 @firetiger monitor this.

@masnwilliams masnwilliams requested a review from rgarcia May 12, 2026 00:35
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

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

Comment thread cmd/create.go
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>
@masnwilliams masnwilliams merged commit 3a9abf8 into main May 12, 2026
7 checks passed
@masnwilliams masnwilliams deleted the hypeship/create-help-templates branch May 12, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants