feat(init): scaffold onboarding command#1293
Open
Fab10-CircleCi wants to merge 2 commits into
Open
Conversation
Lands the shell for the CLI onboarding flow (WEBXP-987). Registers a new top-level `init` subcommand that, from inside a git working tree, prints the four-phase preamble (scan → docker test → generate config → sign up) and stub `[1/3]/[2/3]/[3/3]` step lines that mirror the Figma prototype copy. Outside a git repo it returns a structured ExitBadArguments error with a `cd <path>` suggestion. Adds a permissive `gitremote.InsideWorkTree()` helper (vs. the stricter `Detect()`, which requires a parseable CircleCI remote that fresh `init` targets may not have). Real scan/test/generate/signup logic is owned by follow-up tickets and intentionally not inlined here. Co-Authored-By: Claude Opus 4.7 <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.
Summary
This PR combines Keaton's initial
circleci initscaffold with a small follow-up polish pass for the first onboarding steps.circleci initcommand onnext.Out of scope
Testing
go test ./internal/gitremote ./internal/cmd/cmdinitgo test ./acceptance -run TestInitNotes
This branch is based on current
origin/nextand includes Keaton's scaffold commit plus the follow-up polish commit.