Skip to content

Commit

Permalink
feat: adicionar suporte à documentação no Capítulo 25
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianoflorentino committed Dec 21, 2024
1 parent f1f4720 commit bd7c108
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/chapter/chapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/fabianoflorentino/aprendago/internal/aplicacoes"
"github.com/fabianoflorentino/aprendago/internal/canais"
"github.com/fabianoflorentino/aprendago/internal/concorrencia"
"github.com/fabianoflorentino/aprendago/internal/documentacao"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_1"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_10"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_11"
Expand Down Expand Up @@ -62,5 +63,6 @@ func New() []func() {
exercicios_ninja_nivel_10.ExerciciosNinjaNivel10,
tratamento_de_erro.TratamentoDeErro,
exercicios_ninja_nivel_11.ExerciciosNinjaNivel11,
documentacao.Documentacao,
}
}
3 changes: 3 additions & 0 deletions internal/menu/capitulo_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/fabianoflorentino/aprendago/internal/aplicacoes"
"github.com/fabianoflorentino/aprendago/internal/canais"
"github.com/fabianoflorentino/aprendago/internal/concorrencia"
"github.com/fabianoflorentino/aprendago/internal/documentacao"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_1"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_10"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_11"
Expand Down Expand Up @@ -60,6 +61,7 @@ func MenuCapituloOptions([]string) []format.MenuOptions {
{Options: "--cap=22 --topics", ExecFunc: func() { exercicios_ninja_nivel_10.HelpMeExerciciosNinjaNivel10() }},
{Options: "--cap=23 --topics", ExecFunc: func() { tratamento_de_erro.HelpMeTratamentoDeErro() }},
{Options: "--cap=24 --topics", ExecFunc: func() { exercicios_ninja_nivel_11.HelpMeExerciciosNinjaNivel11() }},
{Options: "--cap=25 --topics", ExecFunc: func() { documentacao.HelpMeDocumentacao() }},
}
}

Expand Down Expand Up @@ -94,6 +96,7 @@ func HelpMeCapituloOptions() {
{Flag: "--cap=22 --topics", Description: "Exercícios Ninja: Nível 10"},
{Flag: "--cap=23 --topics", Description: "Tratamento de Erro"},
{Flag: "--cap=24 --topics", Description: "Exercícios Ninja: Nível 11"},
{Flag: "--cap=25 --topics", Description: "Documentação"},
}

fmt.Println("Capítulos do Curso")
Expand Down
3 changes: 3 additions & 0 deletions internal/menu/capitulo_outline.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/fabianoflorentino/aprendago/internal/aplicacoes"
"github.com/fabianoflorentino/aprendago/internal/canais"
"github.com/fabianoflorentino/aprendago/internal/concorrencia"
"github.com/fabianoflorentino/aprendago/internal/documentacao"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_10"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_11"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_2"
Expand Down Expand Up @@ -62,6 +63,7 @@ func MenuCapituloOutline([]string) []format.MenuOptions {
{Options: "--cap=22 --overview", ExecFunc: func() { exercicios_ninja_nivel_10.ExerciciosNinjaNivel10() }},
{Options: "--cap=23 --overview", ExecFunc: func() { tratamento_de_erro.TratamentoDeErro() }},
{Options: "--cap=24 --overview", ExecFunc: func() { exercicios_ninja_nivel_11.ExerciciosNinjaNivel11() }},
{Options: "--cap=25 --overview", ExecFunc: func() { documentacao.Documentacao() }},
}
}

Expand Down Expand Up @@ -94,6 +96,7 @@ func HelpMeCapituloOutline() {
{Flag: "--cap=22 --overview", Description: "Exercícios Ninja Nível 10"},
{Flag: "--cap=23 --overview", Description: "Tratamento de Erro"},
{Flag: "--cap=24 --overview", Description: "Exercícios Ninja Nível 11"},
{Flag: "--cap=25 --overview", Description: "Documentação"},
}

fmt.Printf("\nOutline do Curso por Capítulo\n")
Expand Down
2 changes: 2 additions & 0 deletions internal/menu/helpme.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/fabianoflorentino/aprendago/internal/aplicacoes"
"github.com/fabianoflorentino/aprendago/internal/canais"
"github.com/fabianoflorentino/aprendago/internal/concorrencia"
"github.com/fabianoflorentino/aprendago/internal/documentacao"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_1"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_10"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_11"
Expand Down Expand Up @@ -80,4 +81,5 @@ func HelpMe() {
exercicios_ninja_nivel_10.HelpMeExerciciosNinjaNivel10()
tratamento_de_erro.HelpMeTratamentoDeErro()
exercicios_ninja_nivel_11.HelpMeExerciciosNinjaNivel11()
documentacao.HelpMeDocumentacao()
}
2 changes: 2 additions & 0 deletions internal/menu/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/fabianoflorentino/aprendago/internal/aplicacoes"
"github.com/fabianoflorentino/aprendago/internal/canais"
"github.com/fabianoflorentino/aprendago/internal/concorrencia"
"github.com/fabianoflorentino/aprendago/internal/documentacao"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_1"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_10"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_11"
Expand Down Expand Up @@ -94,6 +95,7 @@ func Options(args []string) {
exercicios_ninja_nivel_10.MenuExerciciosNinjaNivel10(args),
tratamento_de_erro.MenuTratamentoDeErro(args),
exercicios_ninja_nivel_11.MenuExerciciosNinjaNivel11(args),
documentacao.MenuDocumentacao(args),
)
}

Expand Down

0 comments on commit bd7c108

Please sign in to comment.