@@ -31,7 +31,11 @@ func listOne(pathToFind string) error {
3131 return fmt .Errorf ("helper.GetDataFolder: %w" , errGetDataFolder )
3232 }
3333
34- if errPrettyPrintFile := data .PrettyPrintDataFile (dataFolder + string (os .PathSeparator )+ projectRecordEntity .DataFileName , " " ); errPrettyPrintFile != nil {
34+ if errPrettyPrintFile := data .PrettyPrintDataFile (
35+ dataFolder + string (os .PathSeparator )+ projectRecordEntity .DataFileName ,
36+ func (todo string , index int ) string {
37+ return fmt .Sprintf ("\t %v. %v" , index , todo )
38+ }); errPrettyPrintFile != nil {
3539 return fmt .Errorf ("helper.PrettyPrintDataFile: %w" , errPrettyPrintFile )
3640 }
3741 return nil
@@ -48,7 +52,12 @@ func listConcurrently(item record.RecordEntity, dataFolder string) (chan string,
4852 }
4953
5054 go func () {
51- result , errPrettyPrintDataFile := data .SPrettyPrintDataFile (dataFolder + string (os .PathSeparator )+ item .DataFileName , " " )
55+ result , errPrettyPrintDataFile := data .SPrettyPrintDataFile (
56+ dataFolder + string (os .PathSeparator )+ item .DataFileName ,
57+ func (todo string , index int ) string {
58+ return fmt .Sprintf ("\t %v. %v" , index , todo )
59+ },
60+ )
5261 if errPrettyPrintDataFile != nil {
5362 c <- fmt .Sprintf ("Error: Something went wrong: data.SPrettyPrintDataFile: %v" , errPrettyPrintDataFile )
5463 }
0 commit comments