@@ -13,8 +13,6 @@ import (
13
13
"github.com/charmbracelet/bubbles/viewport"
14
14
tea "github.com/charmbracelet/bubbletea"
15
15
16
- // "golang.org/x/term"
17
-
18
16
"github.com/charmbracelet/lipgloss"
19
17
"github.com/charmbracelet/log"
20
18
"github.com/enescakir/emoji"
@@ -163,7 +161,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
163
161
}
164
162
case "enter" :
165
163
switch m .currentView {
166
- // View to confirm that the detected languages are correct
164
+ // Confirm that the detected languages are correct
167
165
case ConfirmLanguages :
168
166
if m .choice == "yes" {
169
167
m .additionalProjectInfo .Blur ()
@@ -173,13 +171,13 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
173
171
m .additionalProjectInfo .Focus ()
174
172
m .currentView = CorrectLanguages
175
173
}
176
- // View to correct the detected languages (when Ghost was wrong or more details are needed)
174
+ // Correct the detected languages (when Ghost was wrong or more details are needed)
177
175
case CorrectLanguages :
178
176
if m .additionalProjectInfo .Value () != "" {
179
177
m .currentView = Preload
180
178
m .choice = "yes"
181
179
}
182
- // View to allow the user to specify what tasks they'd like to do in their pipeline
180
+ // Allow the user to specify what tasks they'd like to do in their pipeline
183
181
case InputTasks , CorrectGHA :
184
182
if m .desiredTasks .Value () != "" {
185
183
m .currentView = LoadingGHA
@@ -280,7 +278,7 @@ func (m model) View() string {
280
278
log .Error ("Error: detected languages is empty" )
281
279
return ""
282
280
}
283
- return textInputView (m , fmt .Sprintf ("%v What tasks should Ghost include in your GitHub Action workflow?" , emoji .Ghost ), m .desiredTasks )
281
+ return textInputView (m , fmt .Sprintf ("%v What tasks should Ghost include in your GitHub Actions workflow?" , emoji .Ghost ), m .desiredTasks )
284
282
case GenerateGHA :
285
283
if len (m .GHAWorkflow ) == 0 {
286
284
log .Error ("Error: detected languages or desired tasks is empty" )
@@ -289,7 +287,7 @@ func (m model) View() string {
289
287
return confirmationView (m ,
290
288
"" ,
291
289
"Great! Output to .github/workflows/ghost.yml" ,
292
- "I want Ghost to refine to generated GHA workflow" ,
290
+ "I want Ghost to refine to generated GitHub Actions workflow" ,
293
291
true ,
294
292
m .GHAWorkflow )
295
293
case CorrectGHA :
0 commit comments