Skip to content

Commit 137f3b6

Browse files
refactor: update Help function to use base content for help messages
1 parent c0d8b73 commit 137f3b6

File tree

1 file changed

+3
-4
lines changed
  • internal/agrupamento_de_dados

1 file changed

+3
-4
lines changed

internal/agrupamento_de_dados/help.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
package agrupamento_de_dados
88

99
import (
10-
"fmt"
11-
10+
base "github.com/fabianoflorentino/aprendago/pkg/base_content"
1211
"github.com/fabianoflorentino/aprendago/pkg/format"
1312
)
1413

@@ -31,6 +30,6 @@ func Help() {
3130
{Flag: flagMapsRangeEDeletando, Description: descMapsRangeEDeletando},
3231
}
3332

34-
fmt.Println("Capítulo 8: Agrupamento de Dados")
35-
format.PrintHelpMe(h)
33+
b := base.New()
34+
b.HelpMe("Capítulo 8: Agrupamento de Dados", h)
3635
}

0 commit comments

Comments
 (0)