Skip to content

Commit

Permalink
🚚 Move template package into internal
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 6, 2022
1 parent b463169 commit d6ff7a1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/clevyr/go-yampl/internal/config"
"github.com/clevyr/go-yampl/pkg/template"
"github.com/clevyr/go-yampl/internal/template"
"github.com/spf13/cobra"
"gopkg.in/yaml.v3"
"io"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Visitor func(conf config.Config, node *yaml.Node) error

func VisitNodes(conf config.Config, visit Visitor, node *yaml.Node) error {
if len(node.Content) == 0 {
if err := LineComment(conf, node); err != nil {
if err := visit(conf, node); err != nil {
return err
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var defaultConf = config.Config{
},
}

func TestRecurseNode(t *testing.T) {
func TestVisitNodes(t *testing.T) {
type args struct {
conf config.Config
input string
Expand Down

0 comments on commit d6ff7a1

Please sign in to comment.