Cleanup for public release

- Test Include string representation

- Add docs and examples
This commit is contained in:
Kevin Burke
2017-05-25 08:00:10 -07:00
parent 3fad3c64da
commit 7897293c53
5 changed files with 69 additions and 24 deletions

View File

@@ -131,7 +131,7 @@ func (p *sshParser) parseKV() sshParserStateFn {
}
lastHost := p.config.Hosts[len(p.config.Hosts)-1]
if strings.ToLower(key.val) == "include" {
inc, err := NewInclude(strings.Split(val.val, " "), comment, p.system, p.depth+1)
inc, err := NewInclude(strings.Split(val.val, " "), hasEquals, key.Position, comment, p.system, p.depth+1)
if err == ErrDepthExceeded {
p.raiseError(val, err)
return nil