Fix Cmd.Q bug

This commit is contained in:
rwxrob 2022-03-27 09:21:58 -04:00
parent 0ed264ef76
commit 5b43af2346
No known key found for this signature in database
GPG Key ID: 2B9111F33082AE77

5
cmd.go
View File

@ -237,9 +237,10 @@ func (x *Cmd) Branch() string {
return strings.Join(callers.Items(), ".")
}
// Q is a shorter version of x.Conf.Query(x.Root.Name,x.Branch()+"."+q) for convenience.
// Q is a shorter version of x.Conf.Query(x.Root.Name,x.Branch()+"."+q)
// for convenience.
func (x *Cmd) Q(q string) string {
return x.Conf.Query(x.Root.Name, x.Branch()+"."+q)
return x.Conf.Query(x.Root.Name, "."+x.Branch()+"."+q)
}
// TODO C for Cache lookups