Skip to content

Commit

Permalink
feat: adicionar suporte para exercícios do Nível 12 no menu e opções …
Browse files Browse the repository at this point in the history
…do curso
  • Loading branch information
fabianoflorentino committed Dec 22, 2024
1 parent 0cb82ba commit bd137ab
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 @@ -14,6 +14,7 @@ import (
"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"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_12"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_2"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_3"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_4"
Expand Down Expand Up @@ -64,5 +65,6 @@ func New() []func() {
tratamento_de_erro.TratamentoDeErro,
exercicios_ninja_nivel_11.ExerciciosNinjaNivel11,
documentacao.Documentacao,
exercicios_ninja_nivel_12.ExerciciosNinjaNivel12,
}
}
3 changes: 3 additions & 0 deletions internal/menu/capitulo_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"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"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_12"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_2"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_3"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_4"
Expand Down Expand Up @@ -62,6 +63,7 @@ func MenuCapituloOptions([]string) []format.MenuOptions {
{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() }},
{Options: "--cap=26 --topics", ExecFunc: func() { exercicios_ninja_nivel_12.HelpMeExerciciosNinjaNivel12() }},
}
}

Expand Down Expand Up @@ -97,6 +99,7 @@ func HelpMeCapituloOptions() {
{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"},
{Flag: "--cap=26 --topics", Description: "Exercícios Ninja: Nível 12"},
}

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 @@ -13,6 +13,7 @@ import (
"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_12"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_2"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_3"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_4"
Expand Down Expand Up @@ -64,6 +65,7 @@ func MenuCapituloOutline([]string) []format.MenuOptions {
{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() }},
{Options: "--cap=26 --overview", ExecFunc: func() { exercicios_ninja_nivel_12.ExerciciosNinjaNivel12() }},
}
}

Expand Down Expand Up @@ -97,6 +99,7 @@ func HelpMeCapituloOutline() {
{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"},
{Flag: "--cap=26 --overview", Description: "Exercícios Ninja Nível 12"},
}

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 @@ -14,6 +14,7 @@ import (
"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"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_12"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_2"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_3"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_4"
Expand Down Expand Up @@ -82,4 +83,5 @@ func HelpMe() {
tratamento_de_erro.HelpMeTratamentoDeErro()
exercicios_ninja_nivel_11.HelpMeExerciciosNinjaNivel11()
documentacao.HelpMeDocumentacao()
exercicios_ninja_nivel_12.HelpMeExerciciosNinjaNivel12()
}
2 changes: 2 additions & 0 deletions internal/menu/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import (
"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"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_12"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_2"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_3"
"github.com/fabianoflorentino/aprendago/internal/exercicios_ninja_nivel_4"
Expand Down Expand Up @@ -96,6 +97,7 @@ func Options(args []string) {
tratamento_de_erro.MenuTratamentoDeErro(args),
exercicios_ninja_nivel_11.MenuExerciciosNinjaNivel11(args),
documentacao.MenuDocumentacao(args),
exercicios_ninja_nivel_12.MenuExerciciosNinjaNivel12(args),
)
}

Expand Down

0 comments on commit bd137ab

Please sign in to comment.