NewFirstTimeSetup creates a new first-time setup TUI.
(baseDir string, showGitignore bool)
| 68 | |
| 69 | // NewFirstTimeSetup creates a new first-time setup TUI. |
| 70 | func NewFirstTimeSetup(baseDir string, showGitignore bool) *FirstTimeSetup { |
| 71 | step := StepPRDName |
| 72 | if showGitignore { |
| 73 | step = StepGitignore |
| 74 | } |
| 75 | return &FirstTimeSetup{ |
| 76 | baseDir: baseDir, |
| 77 | showGitignore: showGitignore, |
| 78 | step: step, |
| 79 | gitignoreSelected: 0, // Default to "Yes" |
| 80 | prdName: "main", |
| 81 | pushSelected: 0, // Default to "Yes" |
| 82 | createPRSelected: 0, // Default to "Yes" |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | // Init initializes the model. |
| 87 | func (f FirstTimeSetup) Init() tea.Cmd { |