fix: allow other dirs than vendor (#80)

This commit is contained in:
Hang Xie 2020-02-08 05:46:51 -08:00 committed by GitHub
parent 0ba0ff5522
commit 1d729c9517
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 6 deletions

View file

@ -17,6 +17,7 @@ package main
import (
"fmt"
"os"
"path/filepath"
"github.com/fatih/color"
"github.com/pkg/errors"
@ -67,6 +68,8 @@ func Main() int {
return 1
}
cfg.JsonnetHome = filepath.Clean(cfg.JsonnetHome)
switch command {
case initCmd.FullCommand():
return initCommand(workdir)