feat: new readme

This commit is contained in:
leonardotrapani
2026-02-01 22:04:42 +01:00
parent 0b0e084155
commit 305f64a73d
16 changed files with 517 additions and 685 deletions
+3 -6
View File
@@ -78,19 +78,16 @@ func (m wizardModel) View() string {
}
// Run starts the TUI configuration wizard.
// If onboarding is true, forces the guided wizard flow even if config exists.
// If onboarding is true, starts the guided onboarding flow.
func Run(existingConfig *config.Config, onboarding bool) (*ConfigureResult, error) {
if existingConfig == nil {
return nil, fmt.Errorf("config is required")
}
state := &wizardState{cfg: existingConfig}
if onboarding || !hasUserChanges(existingConfig) {
state.onboarding = true
}
state := &wizardState{cfg: existingConfig, onboarding: onboarding}
var start screen
if state.onboarding {
if onboarding {
start = newWelcomeScreen(state)
} else {
start = newMenuScreen(state)