gapi: Add a prefix variable in case we want to namespace on disk

This could get passed through to use as a module download path.
This commit is contained in:
James Shubin
2018-11-16 22:24:39 -05:00
parent 433ffa05a5
commit cd7711bdfe
4 changed files with 8 additions and 1 deletions

View File

@@ -481,6 +481,7 @@ func (obj *Main) Run() error {
//NoWatch: obj.NoWatch,
NoConfigWatch: obj.NoConfigWatch,
NoStreamWatch: obj.NoStreamWatch,
Prefix: fmt.Sprintf("%s/", path.Join(prefix, "gapi")),
Debug: obj.Flags.Debug,
Logf: func(format string, v ...interface{}) {
log.Printf("gapi: "+format, v...)