summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/parser.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/conf/parser.go b/conf/parser.go
index 0e19338..29f8968 100644
--- a/conf/parser.go
+++ b/conf/parser.go
@@ -21,14 +21,12 @@ import (
"io"
"os"
+ "github.com/Shugyousha/stasher/manager"
"github.com/Shugyousha/stasher/registry"
)
// Having a Config to Manager function could be nice? Or we could just
// return a Manager from here which may be even better...
-type Config struct {
-}
-
type parser struct {
s scanner
last token
@@ -48,11 +46,11 @@ func newParser(s *scanner) *parser {
return p
}
-func NewConfig(r io.Reader) *Config {
+func NewManagerFromConfig(r io.Reader) *manager.Manager {
p := newParser(newScanner(r))
p.startparsing()
- return &Config{}
+ return &manager.Manager{}
}
func (p *parser) startparsing() {