Pārlūkot izejas kodu

Minor refactoring of tui docs

arianagiroux 2 nedēļas atpakaļ
vecāks
revīzija
1ec833af32
1 mainītis faili ar 5 papildinājumiem un 6 dzēšanām
  1. 5 6
      tui.go

+ 5 - 6
tui.go

@@ -159,6 +159,10 @@ type widget interface {
 
 // -------- creatIssue definitions --------------------------------------------
 // ----------------------------------------------------------------------------
+// TODO invoke editor for descriptions
+// TODO handle reset on esc
+// TODO handle errors and display gracefully
+// TODO implement description field in create.create
 
 // data struct for createIssue
 type inputField struct {
@@ -166,10 +170,7 @@ type inputField struct {
 	title string
 }
 
-// TODO invoke editor for descriptions
-// TODO handle reset on esc
-
-// widget for creating an issue
+// struct definition for create widget
 type create struct {
 	inputFields []inputField
 	Path        string
@@ -461,8 +462,6 @@ func (m Model) load() tea.Msg {
 // type wrapper for create.create() result
 type createResult Issue
 
-// TODO implement description field in createIssue.create cmd
-
 // A tea.Cmd to translate create.inputs to a new Issue object
 func (c create) create() tea.Msg {
 	data := make(map[string]string)