Load env on download
Signed-off-by: jolheiser <john.olheiser@gmail.com>pull/23/head
parent
07ccb51584
commit
3ca36b7817
|
@ -4,6 +4,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"go.jolheiser.com/tmpl/env"
|
||||
"go.jolheiser.com/tmpl/registry"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
|
@ -37,6 +38,14 @@ func runDownload(ctx *cli.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
e, err := env.Load(registryFlag)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := e.Set(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
var source *registry.Source
|
||||
if sourceFlag != "" {
|
||||
for _, s := range reg.Sources {
|
||||
|
|
Loading…
Reference in New Issue