Skip to content

Commit

Permalink
add/update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
k3llymariee committed Mar 16, 2024
1 parent eb68bff commit 3de5538
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/setup/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ func (p projectModel) Init() tea.Cmd {

func (m projectModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
var cmd tea.Cmd
// if we've selected the option to create a new project, delegate to the textInput model
if m.showInput {
m.textInput, cmd = m.textInput.Update(msg)

// catch the enter key here to update the model when a final value is provided
// catch the enter key here to update the projectModel when a final value is provided
switch msg := msg.(type) {
case tea.KeyMsg:
switch {
Expand Down

0 comments on commit 3de5538

Please sign in to comment.