feat(onboarding): add interactive walkthrough command#59
Merged
Conversation
`grounds onboarding` (aliases: onboard, quickstart) — a guided, explain-then-do walkthrough that takes a new developer from zero to a running app in five steps: Login → Workspace (Bundle) → init → push → play. Each step explains the concept, then runs the real command after a Ja/Überspringen confirm. Reuses the existing subcommands (login/init/cluster/push) via cobra Execute() — no duplicated logic. The Workspace step provisions a Bundle by default (resolves the latest released bundle ref via ListBundleReleases, falls back to main). Built on huh (already a dep); bails cleanly when stdin is not a TTY. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
grounds onboarding(aliases:onboard,quickstart) — a guided, explain-then-do walkthrough that takes a new developer from zero to a running app in five steps:Each step first explains the concept (German copy), then runs the real command after a
Ja/Überspringenconfirm. Skipping is always allowed; re-runnable any time.How
cluster up --bundle/ push) via cobraExecute()— no duplicated logic.ListBundleReleases→IsLatest, falls back tomain) and provisions it. A partial/failed bundle is surfaced and offers "continue anyway" rather than dead-ending.huh(already a dependency, previously unused); bails cleanly with a clear message when stdin is not a TTY.Files:
cmd/grounds/commands/onboarding/{onboarding.go,onboarding_test.go}+ registration inmain.go.Verification
go build ./...+go vetclean; package test green (metadata + non-TTY guard).grounds --helplists it;grounds onboarding --helprenders; non-TTY input bails cleanly.grounds onboardingsmoke test.Notes / possible follow-ups
grounds onboardingafter first login / empty workspace) — not included here.🤖 Generated with Claude Code