Add func setup design proposal#4908
Open
liliankasem wants to merge 3 commits intodocsfrom
Open
Conversation
Reframes func setup based on architectural review: - Identity: machine readiness orchestrator, not a UX wrapper or project bootstrapper. Coordinates workload install, profile pre-install, cache priming, first-run hints. - Drops the setup-side 'profile' concept. The word is reserved for cli-profiles.md (PR #4913). Replaced by --workloads. - User-level mutations only. No writes to .func/config.json or other project files (avoids collision with the profiles proposal). - Telemetry consent moved out of scope; it is a global first-CLI- invocation concern, not setup's job. - Re-run model pinned to idempotent additive reconciliation; adds --check. No manifest, no removal. - Explicit boundary section: init, setup, and start each own one verb and never call each other.
- Progress: TTY spinner, plain-text periodic in CI, opt-in --output json - Offline: deferred to a separate CLI-wide proposal - Picker UX: categorized; pre-select curated recommendations per detected language - Discoverability: post-install message + 'func' with no args - --check exit codes: single non-zero; details to stdout/stderr - Project inference: read broadly, surface as info; pre-selection comes from curated recommendations, not raw inference
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.
Purpose of this design is to figure out the onboarding story for the new CLI now that a lot of base functionality from v4 is coming from workloads. Given that workloads are essential to the use of the new CLI - we need to make it easy for users to onboard in the CLI, whether that is setting up a new local environment, or CI environment.