func (r *Resolver) ResolveDbSpec(str string) string {
	if r.config != nil {
		if str == "" {
			return r.config.Db[DefaultDbAlias].Url
		}
		if val, ok := r.config.Db[str]; ok {
			return val.Url
		}
	}
	return str
}
Resolve string to database name. If config is defined:
- replace the empty string with the default db url
- replace any db alias with it's url
package config
import (
	"fmt"
	"strings"
	"github.com/attic-labs/noms/go/chunks"
	"github.com/attic-labs/noms/go/datas"
	"github.com/attic-labs/noms/go/spec"
	"github.com/attic-labs/noms/go/types"
	"github.com/attic-labs/noms/go/util/verbose"
)
type Resolver struct {
	config      *Config
	dotDatapath string  
}
func NewResolver() *Resolver {
	c, err := FindNomsConfig()
	if err != nil {
		if err != NoConfig {
			panic(fmt.Errorf("Failed to read .nomsconfig due to: %v", err))
		}
		return &Resolver{}
	}
	return &Resolver{c, ""}
}
func (r *Resolver) verbose(orig string, replacement string) string {
	if orig != replacement {
		if orig == "" {
			orig = `""`
		}
		verbose.Log("\tresolving %s -> %s\n", orig, replacement)
	}
	return replacement
}