mirror of
https://github.com/rwxrob/bonzai
synced 2024-11-14 18:12:59 +00:00
Fix Cmd.Q bug
This commit is contained in:
parent
0ed264ef76
commit
5b43af2346
5
cmd.go
5
cmd.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user