Print colored output for fetched package

This commit is contained in:
Matthias Loibl 2019-03-11 14:21:49 +01:00
parent c28ae9034d
commit c2599b641f
No known key found for this signature in database
GPG key ID: B1C7DF661ABB2C1A
289 changed files with 215085 additions and 2 deletions

View file

@ -23,6 +23,7 @@ import (
"path"
"path/filepath"
"github.com/fatih/color"
"github.com/jsonnet-bundler/jsonnet-bundler/spec"
"github.com/pkg/errors"
)
@ -59,6 +60,8 @@ func Install(ctx context.Context, isLock bool, dependencySourceIdentifier string
return nil, errors.Wrap(err, "failed to install package")
}
color.Green(">>> Installed %s version %s\n", dep.Name, dep.Version)
destPath := path.Join(dir, dep.Name)
if err != nil {
return nil, errors.Wrap(err, "failed to find destination path for package")