mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 08:00:05 +01:00
Print colored output for fetched package
This commit is contained in:
parent
c28ae9034d
commit
c2599b641f
289 changed files with 215085 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue